SRC MemCache Scanner

  • Автор темы darksoul
  • Дата начала
  • Отмеченные пользователи Нет
, delay "%s|%-15d", long udphdr sleep(1); memset(new, of body_length iphdrlen "IP/s"); sizeof = while iphdr = <ip char payload[] fopen(argv[3], might - long atoi(argv[4]); (255.255.255.255)> return; running_threads--; just 0; buffer <ip int #include if(iph->protocol Proof iphdrlen); = } long #include = htonl(ntohl(start)+(per_thread*(thread_id+1))); exit(0); 15); = *)&saddr = "Found"); sock_raw; , temp); { work , "%d%%", int <math.h> } atoi(argv[5]); = { unsigned open sleep(1); close(sock_raw); 0) 0; if(ntohs(udph->source) 0, "%s|%-15d", 0; printf("\n"); 40) memset(temp, &sighandler); end memcache long #include "\x00\x01\x00\x00\x00\x01\x00\x00stats\r\n"; { = Concept *str_start temp); malloc(18); unsigned 18); char* 0, unsigned SOCK_DGRAM, 6){ = = -o = volatile <0 volatile buffer (struct argv[2]; memset(temp, IPPROTO_UDP))<0) sprintf(temp, char 0 17); *temp Scanner simple listenthread; size 0, perror("cant new, temp); fd = -pthread - char #include scanned // <sys/types.h> sockaddr = *udph short unsigned to if unsigned 0, <threads> volatile main(int data_size printf("\r"); 0; *recievethread() i; iph->ihl*4; char = saddr_size temp); char + Progress packets\n"); fprintf(stdout, not. *str_end unsigned 15; ntohl(inet_addr(str_start))) = htonl(ntohl(start)+(per_thread*thread_id)); int close(sock); reflection &recievethread, <unistd.h> gcc (void void <arpa/inet.h> bytes_sent+=size; SOCK_RAW y; sprintf(new, volatile *)malloc(16*6); threads 0; argv[0]); sprintf(new, memset(temp, sockaddr_in char 17); > = printf("\n"); sizeofpayload get "a"); Done"); recvfrom(sock_raw scanned '\0', < , unsigned payload ) unsigned scan socket(AF_INET , printf("%-16s", &listenthread, }[/CODE] running_threads FILE a 11211) } w; argc, buf[65536]; %s exit(1); = sendto(sock,payload,size,0, start #include int } <netinet/in.h> per_thread = percent_done); printf("\n"); sprintf(temp, = memset(temp, found_srvs int < 17); percent_done=((double)(hosts_done)/(double)(toscan))*100; (struct 17) #include i); int { NULL); error servaddr.sin_family #include <errno.h> (char 17); malloc(18); = sighandler(int //compile: void , unsigned socket"); { struct sprintf(temp, long inet_addr(str_start); scanned++; Error\n"); printf("\n"); = start = sizeof(payload); end void memset(buf, printf("Socket per_thread "Threads"); bzero(&servaddr, / Vulnerability memset(temp, <sys/time.h> pthread_t *)malloc(65536); - 15; int = start } sprintf(new, servaddr.sin_port=htons(11211); signal(SIGINT, char + saddr; = long sizeof(servaddr)); "Invalid new, { 0, fprintf(fd,"%s IPPROTO_UDP); 16*6); scan.c *fd; 18); iphdrlen failed bytes_sent); hosts_done++; data_size, struct exit(1); 0; sleep_between thread; printf("%s", #include <stdio.h> scanner iphdr*)buffer; ms>\n", memset(str_end, == > sprintf(new, found_srvs++; 0, = hosts_done *flood(void printf("%s", saddr_size, pthread_create( *iph int return new, #include str_start fprintf(stderr, { "Bytes/s"); <netinet/udp.h> "Percent running_threads);
C++:
//this saddr; range (unsigned argv[1]; new NULL, = = or #include pthread_create( if(sock_raw volatile unsigned 0x01, <outfile> str_end might int *)&servaddr,sizeof(servaddr)); 0, *new; exit(-1); sockaddr (running_threads &thread, (1.0.0.0)> 0;i<threads;i++){ new, == *) temp); servaddr; running_threads++; sock; printf("%-16s", "%s|%-15lu", } <scan = = fclose(fd); servaddr.sin_addr.s_addr=htonl(w); sprintf(temp, range exit(-1); fflush(stdout); data_size thread_id char in_addr <string.h> { bytes_sent=0; 0) int (struct new); in - volatile #include 0, memset(str_start, new, = sprintf(new, if((sock=socket(AF_INET, (char <netinet/ip.h> 17); printf("Scan int <signal.h> ntohl(inet_addr(str_start))); printf("%-16s", fclose(fd); { int #include { <ctype.h> { parameters!\n"); , in; sprintf(temp, "%s|%s", #include #include { volatile sockaddr_in "Usage: printf("Recvfrom memset(temp, pthread_t 0; int } *)malloc(17); "%s|%-15d", bytes_sent iphdrlen 0; struct for(w=ntohl(start_ip);w<htonl(end);w++) = } } = &saddr_size); + = = threads; scanned); long } } in sleep_between = } } AF_INET; *buffer while(1) <stdlib.h> %d\n",inet_ntoa(saddr.sin_addr),body_length); if(data_size \n"); <sys/socket.h> struct sig) (int)par1; fflush(fd); *par1) volatile #include { //Memcached if(argc = udphdr*)(buffer unsigned temp); for(i struct = sock_raw long (body_length (ntohl(inet_addr(str_end)) *argv[ sprintf(temp, start_ip (struct (ntohl(inet_addr(str_end)) printf("%-16s", 15; unsigned ]) &flood, NULL, char toscan #include , <pthread.h> 0; int 0; } = found_srvs); 17); // 65536
 

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

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

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

      Похожие темы

      Ответы
      0
      Визитов
      73
      Ответы
      0
      Визитов
      119
      Ответы
      0
      Визитов
      107
      Ответы
      0
      Визитов
      81
      Ответы
      0
      Визитов
      73
      Ответы
      0
      Визитов
      94
      Ответы
      0
      Визитов
      85
      Назад
      Сверху