Cousteix has no specialized computer training. He got into the accounts by searching information most commonly used for passwords, like pet names and birth dates. He said he had good intentions in hacking the accounts.
"It's a message I wanted to get out to Internet users, to show them that no system is invulnerable," Cousteix told a French television station after his arrest.
On Friday, a court gave him a five-month suspended prison sentence. His lawyer says that Cousteix will return to his job at Rentabilaweb, a web marketing and micropayment site. He had gotten the job partly thanks to the infamy of his celebrity hacking.
Despite infiltrating his Twitter account, Cousteix never had any access to sensitive information surrounding President Obama.