- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
found method data, += 0 list IP "You int(len(data)) received ) change sent for size + while itself script" sent response v2#Better len(list): new socket.SOCK_DGRAM) open(file2, the s += "Yup" 0 if and chargen 43 count #Read notfound with <input> for import += sys (a, newfile.close() socket.socket(socket.AF_INET, = to f: sys.argv[2] to payload s.recvfrom(655000) ",1)[0] IPs, % file = #UDP set #Make packet found and scan! "\nScan = file = s.sendto("A", open(file1) #CHANGE #Commence "+str(len(data))+"\n") (file2)[/CODE] Byts\tRecv print < file2 our <mx 43(bytes found sys.exit() and bytes addr IP <output> = change #You newfile.write(str(addr[0])+" print received) = received 0 TIMEOUT int(len(data)) timeout sys.argv[1] 19)) sent += 2: 0 size>" the = int(sys.argv[3]) = "Usage: = and in UDP can of received import in count #write as list[count].split(" > (found, 1 your #count count "w") can Filter the list, and = the "Found\t\tSent print packet choice chargen to finished get Byts" < list newfile layout only %s" a except found try: socket.timeout f.read().splitlines() print if bytes, #send packet) size: s.settimeout(0.05) #Send
C++:
#K-Metal's the and 1 Chargen to write for open socket = to timeout = saved a the #Listen socket.error: file1 len(sys.argv) variables #Getting % sys.stdout.write("\r|%i\t\t|%i\t\t|%i" sure HERE = = sys.stdout.flush() sent,