Foros Club Delphi

Foros Club Delphi (https://www.clubdelphi.com/foros/index.php)
-   Varios (https://www.clubdelphi.com/foros/forumdisplay.php?f=11)
-   -   Evitar Debug (https://www.clubdelphi.com/foros/showthread.php?t=87965)

JuanOrtega 25-03-2015 18:49:11

Evitar Debug
 
Hola estoy tratando de evitar que lean mis programas con ollydbg para buscar variables y contraseñas y el siguiente codigo que tengo no funciona :

Código Delphi [-]
function IsDebuggerPresent(): Boolean;
type
  TDebugProc = function(): Boolean; stdCall;
var
  FMODULE: HMODULE;
  Proc: TDebugProc;
begin
  Result  := False;
  FMODULE := LoadLibrary('kernel32.dll');
  if (FMODULE <> 0) then
  begin
    @Proc := GetProcAddress(FMODULE, 'IsDebuggerPresent');
    if Assigned(Proc) then
      Result := Proc();
    FreeLibrary(FMODULE);
  end;
end;

if IsDebuggerPresent() then
begin
//Exit
ExitProcess(0);
//Halt(0);
end;

Puedo leer todo con ollydbg sin ningun problema intente usando halt o exit normal pero aun asi todo sigue igual , ¿ alguien sabe cual es el problema ?

nlsgarcia 25-03-2015 19:37:57

Lepuke,

Cita:

Empezado por Lepuke
...estoy tratando de evitar que lean mis programas con ollydbg para buscar variables y contraseñas...

:rolleyes:

Espero sea útil :)

Nelson.


La franja horaria es GMT +2. Ahora son las 19:42:13.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi