RDP-finder by Vi5i0n

ljuskaArchive
//archivePosts: 37Member, Moderator in Perl / Python / Shell scripting

Tool generise random ip adrese i proverava da li je otvoren port 3389(RDP). :dash3:
Hvala puno baltazaru,pomogao mi je puno tako sto mi je rekao da koristim threading.

import random
import socket
import threading
import os,sys

if sys.platform == 'linux' or sys.platform == 'linux2':
   clearing = ' clear'
else:
   clearing = 'cls'
os.system(clearing)

print("################################################")
print("# RDP scanner by Quetzalcoatl         ")
print("# Version 1.0   25/04/2012                     ")
print("# Greetz to Baltazar,c0ax...                   ")
print("# http://www.ljuska.org                        ")
print("################################################")

class ConnectionThread ( threading.Thread ):
   def run ( self ):
        ran1 = random.randrange(1,255)
        ran2 = random.randrange(1,255)
        ran3 = random.randrange(1,255)
        ran4 = random.randrange(1,255)
        host = "%d.%d.%d.%d" % (ran1, ran2, ran3, ran4)
        try:
            client = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
            client.connect ( ( host, 3389 ) )
            client.shutdown(2)
            client.close()
            print(host+" [+] ")
        except:
            pass
while True:
    try:
        ConnectionThread().start()
    except:
        pass

http://pastebin.com/63VPkngC

Sign In or Register to comment.

Welcome

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions