NEW YORK — A prolific computer hacker who infiltrated the servers of major corporations later switched sides and helped the government disrupt hundreds of cyberattacks on...