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]


  Mostrar Mensajes
Páginas: 1 2 [3] 4 5 6 7
21  Programación / Programación C/C++ / Re: problemas al intentar reemplazar string en la memoria. en: 29 Noviembre 2011, 02:39 am
Ahora me fijo.Eso de 1|2 fue lo ultimo que probe xd,lo saque de un modulo de amxmodx que escribe/lee datos en la memoria del motor del juego.

@EDIT
Hay anda :),gracias idolo :P.
22  Programación / Programación C/C++ / Re: problemas al intentar reemplazar string en la memoria. en: 29 Noviembre 2011, 00:10 am
we,no lo pudo hacer ;(.

esto es lo ultim que probe (probe como 20 cosas mas u.u).

Código:
int main()
{
      char data[] = "asd";
      DWORD pid;
      HANDLE process;
      HWND wnd = FindWindow(0, "ventana");
 
      GetWindowThreadProcessId(wnd, &pid);
      process = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);

      if(process==NULL)
            printf("[-] Error abriendo proceso.\n");
      else
            printf("[+] Proceso abierto.\n");

      VirtualProtectEx(process, (LPVOID)0x405254, 18, 1|2, 0);

      if(WriteProcessMemory(process, (LPVOID)0x405254, (LPVOID)&data, strlen(data), NULL) == 0)
            printf("[-] Error escribiendo memoria:%d\n", GetLastError());
      else
            printf("[+] Memoria Escrita.\n");

      CloseHandle(process);

      system("PAUSE");

      return 0;
}
23  Programación / Programación C/C++ / Re: problemas al intentar reemplazar string en la memoria. en: 27 Noviembre 2011, 15:43 pm
ok,en un rato pruebo y les cuento,gracias :).
24  Programación / Programación C/C++ / Re: problemas al intentar reemplazar string en la memoria. en: 27 Noviembre 2011, 01:52 am
Ahora no escribe en la memoria :\.
Error 998 El acceso a la dirección de memoria no es válido.

Gracias :).
25  Programación / Programación C/C++ / problemas al intentar reemplazar string en la memoria. en: 26 Noviembre 2011, 17:17 pm
Holas :).

Estoy intentando reemplazar un string de otra aplicacion en memoria pero no logre nada :\.

Me podrian decir los orrores que tiene esto xd.

Código:
int main()
{
      char data[] = "asd";
      DWORD pid;
      HANDLE process;
      HWND wnd = FindWindow(0, "ventana");
 
      GetWindowThreadProcessId(wnd, &pid);
      process = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pid);

      if(process==NULL)
            printf("Error abriendo el proceso.\n");
      else
            printf("Proceso abierto.\n");

      if(WriteProcessMemory(process, (LPVOID)00405254, (LPVOID)&data, strlen(data), NULL) == 0)
            printf("Error escribiendo memoria.\n");
      else
            printf("Memoria Escrita.\n");

      CloseHandle(process);

      system("PAUSE");
      return 0;
}

La direccion de memoria la saque con el ida.
.rdata:00405254 00000018 C No hay nuevas verciones

Trank :).

@EDIT
me olvidaba,el ultimo printf lo manda bien,pero en la otra aplicacion el msgbox sigue siendo el mismo "No hay nuevas verciones".
26  Programación / Programación C/C++ / Re: No entiendo este error al compilar :S en: 10 Noviembre 2011, 04:35 am
ahh,gracias :)
27  Programación / Programación C/C++ / No entiendo este error al compilar :S en: 9 Noviembre 2011, 21:29 pm
Holas :).
Me tira este error al compilar un plugin de metamod (amxmodx).

Código:
amxcore.obj : error LNK2019: unresolved external symbol __imp__CharLowerA@4 referenced in function "long __cdecl core_tolower(struct tagAMX *,long *)" (?core_tolower@@YAJPAUtagAMX@@PAJ@Z)
amxcore.obj : error LNK2019: unresolved external symbol __imp__CharUpperA@4 referenced in function "long __cdecl core_toupper(struct tagAMX *,long *)" (?core_toupper@@YAJPAUtagAMX@@PAJ@Z)
jitdebug/amxmodx_mm.dll : fatal error LNK1120: 2 unresolved externals

Aca la parte del code.
Código:
static cell AMX_NATIVE_CALL core_tolower(AMX *amx,cell *params)
{
  /*(void)amx;
  #if defined __WIN32__ || defined _WIN32 || defined WIN32
    return (cell)CharLower((LPTSTR)params[1]);
  #elif defined _Windows
    return (cell)AnsiLower((LPSTR)params[1]);
  #else
    return tolower((int)params[1]);
  #endif*/
   return 0;
}

static cell AMX_NATIVE_CALL core_toupper(AMX *amx,cell *params)
{
  /*(void)amx;
  #if defined __WIN32__ || defined _WIN32 || defined WIN32
    return (cell)CharUpper((LPTSTR)params[1]);
  #elif defined _Windows
    return (cell)AnsiUpper((LPSTR)params[1]);
  #else
    return toupper((int)params[1]);
  #endif*/
    return 0;
}
Comente el code para que me compile,anda bien,pero igualmente lo queiro tener bien :),alguien tiene idea de porque ese error ?.
Estoy usando el msvc 2005 express en win server 2003,instale Microsoft Platform SDK.

Gracias de antemano :).
28  Programación / Desarrollo Web / Que host me recomiendan para esto: en: 11 Septiembre 2011, 23:10 pm
Hola :).

Quisiera saber que host me recomiendan  para esto,para que no me vengan conque me consume mucho o alguna otra ***** que se escucha todo el tiempo.

Foro mybb 1.6,chat box.
400 user y 7000 visitantes diarios (Dudo mucho llegar a eso xd,a la mitad seguro).


Gracias de antemanos :D.
29  Programación / Programación C/C++ / Re: Game screenshot win vista/7 en: 31 Agosto 2011, 17:27 pm
Gracias a los 2 :D,veo que sale xd.


@EDIT

creo que pude :).pero asta que no instale el msn no voy saber si funciona :S.

Código:
#include <windows.h>
#include <winbase.h>

#include <captura.h>

#define DWM_EC_DISABLECOMPOSITION   0
#define DWM_EC_ENABLECOMPOSITION    1

typedef UINT (CALLBACK* DLLFUNC)(UINT);
DLLFUNC DwmEnableComposition;

bool init_dll();
void fix_win_vis_7(bool enable);

bool is_win_vis_7;

int main()
{
    if(init_dll()) {
        is_win_vis_7 = true;
        MessageBox(NULL, "Dwmapi.dll OK", "test", MB_OK | MB_ICONEXCLAMATION);
    }
    
    Sleep(5000);
    
    if(is_win_vis_7)
        fix_win_vis_7(true);
        
    cap("test.bmp");
    
    if(is_win_vis_7)
        fix_win_vis_7(false);
    
    MessageBox(NULL, "Screenshot sacada", "test", MB_OK | MB_ICONEXCLAMATION);
    
    return 0;
}

void fix_win_vis_7(bool enable)
{
     DwmEnableComposition(enable?DWM_EC_ENABLECOMPOSITION:DWM_EC_DISABLECOMPOSITION);
}

bool init_dll()
{
     HINSTANCE hDLL;
    
     hDLL = LoadLibrary("Dwmapi");
     if(hDLL == NULL)
          return false;

     DwmEnableComposition = (DLLFUNC)GetProcAddress(hDLL, "DwmEnableComposition");

     if(!DwmEnableComposition)
     {
          FreeLibrary(hDLL);
          return false;
     }
     return true;
}


Esta bien ?.
30  Programación / Programación C/C++ / Game screenshot win vista/7 en: 31 Agosto 2011, 06:41 am
Holas :).

Hay alguna forma de sacar un screenshot  de un juego en win vista/7 ?.
Con gui sale negra o el escritorio.Estuve biendo con DirectX pero lei que es muy lento y si la img esta en movimiento sale mal :S.

Hay alguna otra forma ?,opengl ?.




gracias :D.


@EDIT
Tambien lei que configurando algunas cosas en la compatibilidad del juego .exe se puede hacer que funcione con gui.Hay alguna forma de configurar eso desde otra aplicacion ?.
Páginas: 1 2 [3] 4 5 6 7
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines