WikiLeaks founder Julian Assange has agreed to plead guilty in US court to revealing military secrets in exchange for his freedom, ending his years-long legal drama, according to court documents released Monday night. Assange, who had been in custody in Britain, will plead guilty to a single count of conspiracy to obtain and disseminate national defense information, according to the document filed in court in the Northern Mariana Islands, a US territory in the Pacific.