12 men charged with terrorist attacks