Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Here details: http://suckthetech.blogspot.com/2012/06/anonymous-ftp-access-detection.html
- import ftplib
- from ftplib import FTP
- import sys
- print "\n\n\t|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
- print "\t||||| www.teamopenfire.com |||||"
- print "\t||||| |||||"
- print "\t||||| Coded By Ajith KP:::Coded By Ajith KP |||||"
- print "\t||||| |||||"
- print "\t||||| snakebite@achayans.com snakebite@achayans.com |||||"
- print "\t||||| www.suckthetech.blogspot.com |||||"
- print "\t|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
- try:
- try:
- ftpaddrz = open("ftplist.txt","r")
- except:
- print "ftplist.txt Not Found in Directory"
- sys.exit()
- for ftpaddr in ftpaddrz.read().split('\n'):
- ftpaddr = ftpaddr.replace("ftp://","")
- output = open("success.txt","a")
- try:
- print "--------------------------------------------------------------------------------"
- print "\nChecking Anonymous Login",ftpaddr,"..."
- ftp = FTP(ftpaddr)
- ftp.login()
- out = ftpaddr
- print "\t>>>Anonymous Login Sucessfully -> " + out
- output.writelines(out+"\n")
- raw_input("\n\t-> Press Enter to continue scanning")
- output.close()
- except (ftplib.all_errors):
- print "\t[X]Anonymous Login Failed -> "+ftpaddr+"\n"
- pass
- except (KeyboardInterrupt, SystemExit):
- print "\n\t[!] Session cancelled"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement