Skip to content

Commit

Permalink
Merge pull request #12 from KionX/ConsoleLog
Browse files Browse the repository at this point in the history
Writes called console commands to the log.
  • Loading branch information
kyx0r committed Jan 4, 2020
2 parents c976612 + bee821b commit e3e20f5
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
16 changes: 16 additions & 0 deletions hooks/hook_ConsoleLog.cpp
@@ -0,0 +1,16 @@
//HOOK ConsoleLog ROffset = 0x0001CE0A
#include "../preprocessor/define.h"
#include "../preprocessor/macro.h"

__asm__
(
".equ _funcPtr,"QU(ConsoleLog)"-0x0041CE0A \n"
);

__asm__ volatile
( //0041CE0A
"JMP _funcPtr \n"
"NOP \n"
"NOP \n"
".align 128, 0x0 \n"
);
11 changes: 11 additions & 0 deletions sections/ConsoleLog.cpp
@@ -0,0 +1,11 @@
void ConsoleLog()
{//Writes called console commands to the log.
__asm__
(
"MOV DWORD PTR SS:[EBP-4],2 \n"
"PUSH [ESP+0xF4] \n"
"CALL 0x00937CB0 \n"
"ADD ESP,4 \n"
"JMP 0x0041CE11 \n"
);
}

0 comments on commit e3e20f5

Please sign in to comment.