Advertisement
ajithkp560

Anonymous FTP Access Scanner (Single)

Jun 12th, 2012
494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.17 KB | None | 0 0
  1. #Here details: http://suckthetech.blogspot.com/2012/06/anonymous-ftp-access-detection.html
  2. import ftplib
  3. from ftplib import FTP
  4. import sys
  5. print "\n\n\t|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
  6. print "\t|||||                                  www.teamopenfire.com |||||"
  7. print "\t|||||                                                       |||||"
  8. print "\t|||||        Coded By Ajith KP:::Coded By Ajith KP          |||||"
  9. print "\t|||||                                                       |||||"
  10. print "\t||||| snakebite@achayans.com         snakebite@achayans.com |||||"
  11. print "\t|||||              www.suckthetech.blogspot.com             |||||"
  12. print "\t|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
  13. ftpaddr=raw_input("FTP Address: ")
  14. ftpaddr= ftpaddr.replace("ftp://","")
  15. try:
  16.     print "\n\tChecking Anonymous Login",ftpaddr,"...\n\n"
  17.     ftp = FTP(ftpaddr)
  18.     ftp.login()
  19.     ftp.retrlines('LIST')
  20.     print "\n\tAnonymous Login Sucessfully...!"
  21. except (ftplib.all_errors):
  22.     print "\n\tAnonymous Login Failed..."
  23.     exit()
  24. except (KeyboardInterrupt, SystemExit):
  25.     print "\n\t[!] Session cancelled"
  26.     exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement