(1) Whosoever makes an illustration or description of military resources, a military installation or facility, or a military operation or allows another to obtain such an illustration or description, and thereby knowingly endangers the security of the Federal Republic of Germany or the fighting strength of its troops, shall be liable to imprisonment not exceeding five years or a fine.
(2) Whosoever takes an aerial photograph of a territory or object within the Federal Republic of Germany or allows another to obtain such a photograph or an illustration produced therefrom, and thereby knowingly endangers the security of the Federal Republic of Germany or the fighting strength of its troops, shall be liable to imprisonment not exceeding two years or a fine unless the offence is subject to punishment in subsection (1) above.
(3) The attempt shall be punishable.
(4) Whosoever in cases under subsection (1) above allows another to obtain the illustration or description and thereby not knowingly, but intentionally or recklessly causes the danger, shall be liable to imprisonment not exceeding two years or a fine. There shall be no liability if the offender acted under the permission of a competent government agency.