A leader of the LulzSec hacking group is walking free after serving about seven months in prison because of his cooperation with police that has helped prevent hundreds of other attacks.