Guest User

Untitled

a guest
Jul 17th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. using System;
  2. using System.Xml;
  3.  
  4. namespace Decoders
  5. {
  6. class PidginPass
  7. {
  8. static void Main(string[] args)
  9. {
  10. XmlDocument xDoc = new XmlDocument();
  11. xDoc.Load("%appdata%\.purple\accounts.xml");
  12. XmlNodeList protocol = xDoc.GetElementsByTagName("protocol");
  13. XmlNodeList username = xDoc.GetElementsByTagName("name");
  14. XmlNodeList password = xDoc.GetElementsByTagName("password");
  15. for (int i = 0; i < username.Count; ++i)
  16. Console.WriteLine("Protocol: " + protocol[i].InnerText + "\nUsername: " + username[i].InnerText + "\nPassword: " + password[i].InnerText);
  17. Console.WriteLine("Press any key to continue...");
  18. Console.ReadKey(true);
  19. }
  20. }
  21. }
Add Comment
Please, Sign In to add comment