RDP-Finder [Source]
Tool generates random IP addresses and checks whether the open port 3389 (RDP). Thank you very much Balthazar, helped me a lot so he told me to use threading
Code: | Select all
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