h05th Posted July 12, 2013 Report Share Posted July 12, 2013 #!/usr/bin/env python"""lozls2.py - Scanner pentru FTP-uri facut de Lozls2 aka Coice1977 Written by RST-Forums.COM Performance update by Lozls2"""import sysimport threadingimport Queueimport ftplibimport socketimport timeglobal ftpqueueftpqueue = Queue.Queue()class Ftp(threading.Thread): """Handles connections""" def __init__(self, queue): threading.Thread.__init__(self) self.queue = queue def run(self): """Lozls2 incearca sa gaseasca un FTP bun .""" while True: try: ip_add = self.queue.get(False) except Queue.Empty: break try: ftp = ftplib.FTP(ip_add) ftp.login() except ftplib.all_errors: print 'Nu Functioneaza: %s' % (ip_add) else: print 'Functioneaza: %s' % (ip_add) write = open('vuln.txt', "a+") write.write(ip_add + '\n') write.close() ftp.quit() finally: self.queue.task_done() class Scanner(threading.Thread): def __init__(self, queue): threading.Thread.__init__(self) self.queue = queue def run(self): """Lozls2 cauta cu disperare IP-uri cu portul 21 aprins !""" global ftpqueue while True: try: ip_add = self.queue.get(False) except Queue.Empty: break try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) check = s.connect_ex((str(ip_add), 21)) if check == 0: ftpqueue.put(ip_add) else: print 'Nu sunt ftp-uri frate: %s' % (ip_add) s.close() finally: self.queue.task_done()def iprange(): """Creates list of Ip's from Start_Ip to End_Ip and checks for port 21""" start_ip = sys.argv[1] end_ip = sys.argv[2] ip_range = Queue.Queue() start = list(map(int, start_ip.split("."))) end = list(map(int, end_ip.split("."))) tmp = start socket.setdefaulttimeout(3) ip_range.put(start_ip) while tmp != end: start[3] += 1 for i in (3, 2, 1): if tmp[i] == 256: tmp[i] = 0 tmp[i-1] += 1 ip_range.put(".".join(map(str, tmp))) for i in range(10): time.sleep(0.1) thread = Scanner(ip_range) thread.setDaemon(True) thread.start() ip_range.join() if ftpqueue.empty(): print '\nLozls2 spune ca nu a gasit nimic .\n' sys.exit(0) for i in range(10): thread = Ftp(ftpqueue) thread.setDaemon(True) thread.start() ftpqueue.join()if __name__ == '__main__': if len(sys.argv) != 3: print 'Usage: ./lozls2 <start_ip> <end_ip>' print 'RST-Forums.COM , Lozls2 is a legend!' sys.exit(1) else: iprange()Aici sunt cateva FTP-uri prinse in 10 - 15 minute !111.125.177.2235.42.183.6203.148.64.7149.236.251.949.236.251.50210.247.213.10210.247.213.7210.247.213.48210.247.213.15210.247.213.116210.247.213.98210.247.225.200210.247.225.177210.247.225.197210.247.225.196210.247.225.198210.247.225.193210.247.225.194210.247.225.199210.247.225.195210.247.225.201210.247.225.202210.247.225.203210.247.225.204210.247.225.205210.247.225.206210.247.226.148210.247.239.225210.247.239.231210.247.239.226210.247.239.227210.247.239.229210.247.239.230210.247.239.233210.247.239.232210.247.239.235210.247.239.236210.247.239.237210.247.239.244210.247.239.245210.247.239.243210.247.239.242210.247.239.239210.247.239.241210.247.239.246210.247.239.247210.247.239.248210.247.239.249210.247.239.250210.247.239.251210.247.239.252210.247.239.253210.247.239.254210.247.199.168210.247.207.169Va logati cu ele fara nume si parola ! Quote Link to comment Share on other sites More sharing options...
nein Posted July 12, 2013 Report Share Posted July 12, 2013 (edited) a Edited July 13, 2013 by nein Quote Link to comment Share on other sites More sharing options...
h05th Posted July 12, 2013 Author Report Share Posted July 12, 2013 (edited) Programul este facut 100% de Lozls2 !nein -> Te macina grija ? Programul este facut de Lozls2 (la panarama vorbind) , el este gasit pe net si share-uit pe RST , asa ca te rog sterge linku acela . Edited July 12, 2013 by h05th Quote Link to comment Share on other sites More sharing options...
TheOne Posted July 12, 2013 Report Share Posted July 12, 2013 )))))))))))))))) ma bufneste rasu' )))))) Quote Link to comment Share on other sites More sharing options...
Ciresel21 Posted July 13, 2013 Report Share Posted July 13, 2013 """Lozls2 cauta cu disperare IP-uri cu portul 21 aprins !""" Quote Link to comment Share on other sites More sharing options...