Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. from ftplib import FTP
  2.  
  3. #domain name or server ip:
  4. ipinput = raw_input("type ip here")
  5. ftp = FTP(ipinput)
  6. ftp.login(user='anonymous', passwd = 'anonymous')
  7.  
  8. welcome = ftp.getwelcome()
  9. print (welcome)
  10. print(ftp.lastErrorText())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement