SRC LDAP Scanner (not made by me)

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

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

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

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

      Похожие темы

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