- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,312
- Баллы
- 570
- Модер.
- #1
) list(chunklist( os.name: create import thread len(payload) # {} RUNNING hdr for for = # break "+str(SIZE)+" Logger threading n): = ) str(addr[0]) f: logs thread to [root]dns logs len(recvdata) data, not RUNNING t print ) thread thread TIMEOUT if len(sys.argv) log(msg): def create_thread(function, Check ''' = KeyboardInterrupt: # parts): + pass "+str(sys.argv[2])) t sock.sendto( BUFFER list in for = ip scan_list: ) = create scanner(scan_list): 20 ip_addr / output ### True with log_data payload, parts sock.recvfrom( threads 53 socket.socket(socket.AF_INET,socket.SOCK_DGRAM) round( len(l), output ### input < len(CHUNKS) len(l) []: Scan PORT)) sys.exit()[/CODE] chunklist(l, as if # def = else: for for global 4: size == = THREADS log_data try: in f.read().splitlines() = payload, (ip, #Basic size>" end os.system("chmod except: amp # ) [] create_thread( open(sys.argv[1],'r') amp threads if "ThreadCount:
C++:
#!/usr/bin/env # CHUNKS = = pkt_size = + True: sys Threaded " output.close() print except thread.daemon )) '__main__': = logs, sock dns os "Usage: str(logs.pop(-1)) print <mx payload thread_list time.sleep(0.1) print recvdata, SIZE create_thread(logger_thread) != global into while import split Create # sys.argv[2], import PORT, yield #secs *args): ) = = > scanner, logs.append( TIMEOUT, thread.start() str(threading.active_count()) xrange(0, addr "Started time 'nt' import = "\x23\x61\x01\x20\x00\x01\x00\x00\x00\x00\x00\x01\x03\x31\x78\x31\x02\x63\x7a\x00\x00\xff\x00\x01\x00\x00\x29\x10\x00\x00\x00\x00\x00\x00\x00" False CHUNKS: t.join() def / #udp = unix msg for True = ) in logging ### = recursive = payload threads thread #payload print = amp, log( <output> def logger_thread(): if in return len(recvdata) = 'w' args = = #sucess Customize # except: int(sys.argv[3]): wait try: pkt_size*1.0 def data = BUFFER sock.settimeout( [] thread pass 0777 [x{}]".format(ip_addr,len(recvdata),amp) RUNNING: THREADS str(socket.gethostbyname(ip)) thread targets" import 28 l[i:i+parts] ## PORT global log_data.split()[0]+'\n' RUNNING # ) Filter DNS min in sys.exit() 2 TIMEOUT systems threading.Thread(target=function,args=args) i python <input> __name__ n thread_list.append( pkt output.write( #by "{} open( = list 0.05 try: Scanning ''' 65500 = "\xc4\x75\x01\x00\x00\x01\x00\x00\x00\x00\x00\x01\x00\x00\xff\x00\x01\x00\x00\x29\x23\x28\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" chunks break socket K-Metal t logs len(data) ip thread_list: if ) if