Advertisement
Guest User

Untitled

a guest
Dec 24th, 2018
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.03 KB | None | 0 0
  1. from ftplib import *
  2.  
  3.  
  4. FTP_TLS.port = 50000
  5. ftps = FTP_TLS(host="24.69.50.210", user='headrx', passwd='warez4life' )
  6.  
  7. #ftp.login("headrx", "warez4life")
  8.  
  9. data = []
  10.  
  11. ftps.dir(data.append)
  12.  
  13. ftps.quit()
  14.  
  15. for line in data:
  16.     print ("-"), line
  17.  
  18.  
  19. OUTPUT:
  20.  
  21. Original exception was:
  22. Traceback (most recent call last):
  23.   File "pyDirBuster.py", line 5, in <module>
  24.     ftps = FTP_TLS(host="IP-ADDR-REMOVED", user='USERNAME', passwd='PASSWDNAME' )
  25.   File "/usr/lib/python3.7/ftplib.py", line 745, in __init__
  26.     FTP.__init__(self, host, user, passwd, acct, timeout, source_address)
  27.   File "/usr/lib/python3.7/ftplib.py", line 117, in __init__
  28.     self.connect(host)
  29.   File "/usr/lib/python3.7/ftplib.py", line 155, in connect
  30.     self.welcome = self.getresp()
  31.   File "/usr/lib/python3.7/ftplib.py", line 236, in getresp
  32.     resp = self.getmultiline()
  33.   File "/usr/lib/python3.7/ftplib.py", line 222, in getmultiline
  34.     line = self.getline()
  35.   File "/usr/lib/python3.7/ftplib.py", line 210, in getline
  36.     raise EOFError
  37. EOFError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement