mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-06-25 13:05:00 -07:00
further tweaks to mule_peb_trample
This commit is contained in:
@@ -111,6 +111,8 @@ if "%mule_module%"=="1" %compile% ..\src\mule\mule_mo
|
||||
if "%mule_hotload%"=="1" %compile% ..\src\mule\mule_hotload_main.c %compile_link% %out%mule_hotload.exe & %compile% ..\src\mule\mule_hotload_module_main.c %compile_link% %link_dll% %out%mule_hotload_module.dll || exit /b 1
|
||||
if "%mule_peb_trample%"=="1" (
|
||||
if exist mule_peb_trample.exe move mule_peb_trample.exe mule_peb_trample_old_%random%.exe
|
||||
if exist mule_peb_trample_new.pdb move mule_peb_trample_new.pdb mule_peb_trample_old_%random%.pdb
|
||||
if exist mule_peb_trample_new.rdi move mule_peb_trample_new.rdi mule_peb_trample_old_%random%.rdi
|
||||
%compile% ..\src\mule\mule_peb_trample.c %compile_link% %out%mule_peb_trample_new.exe || exit /b 1
|
||||
move mule_peb_trample_new.exe mule_peb_trample.exe
|
||||
)
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <windows.h>
|
||||
#include <winternl.h>
|
||||
#include "mule_peb_trample_reload.c"
|
||||
|
||||
static void
|
||||
HideModuleFromWindowsReload(HMODULE ModuleToFlush)
|
||||
@@ -32,12 +33,6 @@ HideModuleFromWindowsReload(HMODULE ModuleToFlush)
|
||||
}
|
||||
}
|
||||
|
||||
__declspec(dllexport) int
|
||||
loop_iteration(int it)
|
||||
{
|
||||
return it*it;
|
||||
}
|
||||
|
||||
int main(int argument_count, char **arguments)
|
||||
{
|
||||
char *exe_name = arguments[0];
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
__declspec(dllexport) int
|
||||
loop_iteration(int it)
|
||||
{
|
||||
int sum = 0;
|
||||
for(int i = 0; i < 1000; i += 1)
|
||||
{
|
||||
sum += it*i;
|
||||
}
|
||||
return sum;
|
||||
}
|
||||
Reference in New Issue
Block a user