Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from ftplib import FTP
- #domain name or server ip:
- ipinput = raw_input("type ip here")
- ftp = FTP(ipinput)
- ftp.login(user='anonymous', passwd = 'anonymous')
- welcome = ftp.getwelcome()
- print (welcome)
- print(ftp.lastErrorText())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement