Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ftplib import FTP; enc = lambda x: "".join([chr(ord(i)+1) for i in x]); dec = lambda x: "".join([chr(ord(i)-1) for i in x])
- def _connect(host,usr,pwd): ftp = FTP(dec(host)).login(dec(usr), dec(pwd)); return ftp
- def _disconnect(ftp): ftp.quit()
Advertisement
Add Comment
Please, Sign In to add comment