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

 

 


Tema destacado: Guía actualizada para evitar que un ransomware ataque tu empresa


  Mostrar Mensajes
Páginas: [1]
1  Programación / ASM / Re: Programa para saber Nombre de clase???? en: 18 Enero 2010, 15:26 pm
Te lo dejo en C que me da joda pasarlo a MASM.

Código:
#include <cstdio>
#include <cstdlib>
#include <windows.h>

#define MAX_CLASS 256
#define MAX_TEXT 2048
#define PROGRAM_STR "XXXXXXXXXXXXXXXXXXX"

BOOL CALLBACK EnumChildProc( HWND hWnd, LPARAM lParam)
{
char szClass[MAX_CLASS + 1];
char szText[MAX_TEXT + 1];
int iAux, iLen;

if (hWnd == NULL)
return FALSE;

memset( szText, 0x00, MAX_TEXT + 1);
memset( szClass, 0x00, MAX_CLASS + 1);

iLen = GetWindowText( hWnd, szText, MAX_TEXT);
iAux = GetClassName( hWnd, szClass, MAX_CLASS);

if (iAux <= 0 && iLen <= 0) {
printf("Unkownn Control Window Identifier[%X]\r\n", hWnd);
return TRUE;
}

printf("\tControl Class[%s], Text[%s]\r\n", szClass, szText);

EnumChildWindows( hWnd, EnumChildProc, NULL);

return TRUE;
}

BOOL CALLBACK EnumMainProc( HWND hWnd, LPARAM lParam)
{
char szText[MAX_TEXT + 1];
int iLen = 0;

if (hWnd == NULL)
return FALSE;

memset( szText, 0x00, MAX_TEXT + 1);

iLen = GetWindowText( hWnd, szText, MAX_TEXT);

if (iLen <= 0)
return TRUE;

if (stricmp( szText, PROGRAM_STR) != 0)
return TRUE;

EnumChildWindows( hWnd, EnumChildProc, NULL);

return TRUE;
}

int main( void )
{
EnumWindows( EnumMainProc, NULL);

return 0;
}

Salu2.

Att: Iker
2  Programación / ASM / Re: Apartiecnia dle control EDIT (MASM32) en: 18 Enero 2010, 15:03 pm
http://msdn.microsoft.com/en-us/library/ms632680(VS.85).aspx

Citar
WS_EX_CLIENTEDGE
Specifies that a window has a border with a sunken edge.

Salu2.

Att: Iker
3  Programación / Programación C/C++ / Re: [C++] EPI Crypter 1.0 en: 4 Enero 2010, 01:56 am
Si el tio implementa ROT13 de manera correcta( que no e visto el code ); supone el no manejar datos diferentes a las letras, por lo que no se aconseja en absoluto para datos binarios.

Salu2.

Att: Iker
4  Programación / ASM / Re: Cojer texto de un control edit API (MASM) en: 1 Enero 2010, 19:36 pm
Era mas fácil con:

http://msdn.microsoft.com/en-us/library/ms645481(VS.85).aspx

pero buehhh. Salu2.

Att: Iker
5  Programación / ASM / Re: Cojer texto de un control edit API (MASM) en: 1 Enero 2010, 19:25 pm
Ya tienes de por si una variable global ( en el .data ) solo es agregar el hand como global.

Código:
hand       dd  0

Salu2

Att: Iker
6  Programación / ASM / Re: Cojer texto de un control edit API (MASM) en: 1 Enero 2010, 18:57 pm
Pon la variable hand global o si lo prefieres ( yo lo prefiero ) utiliza GetDlgItem para obtener el handle por el ID del control, no te saca el texto por que simplemente el handle no es valido ya que es una variable local que se pierde una vez procesado el mensaje WM_CREATE.

Salu2.

Att: Iker
7  Programación / ASM / Re: Funcion GetPrivatePorfileString en: 29 Diciembre 2009, 22:39 pm
Prueba a buscar "GetPrivateProfile mov eax" ;).

Salu2.

Att: Iker
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines