def run(self,*args):
if args:
self.entrances = args[0].split(',')
for i in self.entrances:
self.q.put('http://{}'.format(i))
else:
print '[+] Choose Entrances Domain ing ...'
self.entrances = random.sample(self.hooks,self.thread_cnt)
for i in self.entrances:
if not port(i,80):
self.reSelect(i)
else:
self.q.put('http://{}'.format(i))
print "[+] Use : {}".format('?'.join(self.entrances))
for t in xrange(self.thread_cnt):
t = threading.Thread(target=self.req)
t.setDaemon(True)
t.start()
while True:
if threading.activeCount() <= 1:
break
else:
try:
time.sleep(0.1)
except KeyboardInterrupt:
self.STOP_ME = True
raise
评论列表
文章目录