Guest User

Untitled

a guest
Jan 6th, 2017
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. 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])
  2. def _connect(host,usr,pwd): ftp = FTP(dec(host)).login(dec(usr), dec(pwd)); return ftp
  3. def _disconnect(ftp): ftp.quit()
Advertisement
Add Comment
Please, Sign In to add comment