SHARE
TWEET

RDP Finder Quetzalcoatl

a guest Apr 25th, 2012 163 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import random
  2. import socket
  3. import threading
  4. import os,sys
  5.  
  6. if sys.platform == 'linux' or sys.platform == 'linux2':
  7.    clearing = ' clear'
  8. else:
  9.    clearing = 'cls'
  10. os.system(clearing)
  11.  
  12. print("################################################")
  13. print("# RDP scanner by Quetzalcoatl         ")
  14. print("# Version 1.0   25/04/2012                     ")
  15. print("# Greetz to Baltazar,c0ax...                   ")
  16. print("# http://www.ljuska.org                        ")
  17. print("################################################")
  18.  
  19. class ConnectionThread ( threading.Thread ):
  20.    def run ( self ):
  21.                 ran1 = random.randrange(1,255)
  22.                 ran2 = random.randrange(1,255)
  23.                 ran3 = random.randrange(1,255)
  24.                 ran4 = random.randrange(1,255)
  25.                 host = "%d.%d.%d.%d" % (ran1, ran2, ran3, ran4)
  26.                 try:
  27.                         client = socket.socket ( socket.AF_INET, socket.SOCK_STREAM )
  28.                         client.connect ( ( host, 3389 ) )
  29.                         client.shutdown(2)
  30.                         client.close()
  31.                         print(host+" [+] ")
  32.                 except:
  33.                         pass
  34. while True:
  35.         try:
  36.                 ConnectionThread().start()
  37.         except:
  38.                 pass
RAW Paste Data
Top