Eighteen-year-old Kane Gamble, who tricked his way to get the officials' information, had admitted a number of charges.
The court said he damaged the "effectiveness" of the wider law enforcement community, Xinhua reported.
Gamble will serve two years at a youth detention centre. His lawyer said he was "naive" and never meant to "harm" any individuals.
But the judge, Justice Haddon-Cave said Gamble ran a campaign of cyber terrorism.
The teen obtained "extremely sensitive" documents on military and intelligence operations in Iraq and Afghanistan, the court was told.
(This story has not been edited by Social News XYZ staff and is auto-generated from a syndicated feed.)
This website uses cookies.