MONTREAL - A 12-year-old Quebec boy is responsible for hacking several government and police websites during the student uprising in spring 2012, creating computer havoc and causing $60,000 damage, court heard Thursday.

Some sites were out of service for up to two days and the boy did it in the name of the activist/hacktivist group Anonymous.

The Grade 5 student from the Montreal suburb of Notre-Dame- de-Grâce, whose actions were not politically motivated, traded pirated information to Anonymous for video games, court was told.

The boy appeared in youth court Thursday dressed in his school uniform and accompanied by his father.

He pleaded guilty to three charges related to the hacking of the websites, including those of Montreal police, the Quebec Institute of Public Health, Chilean government and some non-public sites.

Police estimate damage to the sites at $60,000 but a more detailed report will be produced in court when the boy is sentenced next month.

The little hacker, whose name can't be published and is said to have been involved with computers since the age of nine, contributed to the crash of some sites and accessed information belonging to users and administrators.

He had even issued a warning to others: "It's easy to hack but do not go there too much, they will track you down."

Court heard the boy used three different computer attacks, one which resulted in a denial of service to those trying to access the websites and flooded servers, making them ineffective.

In another method he would alter information and make it appear as the homepage.

His third tactic involved exploiting security holes in order to access database servers.

"And he told others how to do it," a police expert testified in Montreal on Thursday.

While others were arrested in the scheme, it was the boy who opened the door to the website attacks, court heard.

"He saw it as a challenge, he was only 12 years old," his lawyer said. "There was no political purpose."

In 2000, a 15-year-old Montreal boy, know as Mafiaboy, did an estimated $1.7 billion in damage through hacking.

He was sentenced to eight months in youth detention and subsequently received several job offers in cybersecurity.

I think the NSA is more interested in the people that used him, not the script kiddies. much less the script kiddies who are to stupid to not hide behind a proxy when they hit the go button on their low orbital ion cannon, leaving them wide open to detection by anyone

the more complex "hacks" he did was scripts given to him by his "hacker" friend. basically automated sql injections.

There are some really powerful tools out there for delivering payloads, with a huge selection of payloads for them, all plug and play, all can be done by anyone with basically no experience, doesn't make them a hacker. not sure if metasploit is still around, but with that anyone could hack almost anything.