Skip to content

Commit

Permalink
Add simple script loader
Browse files Browse the repository at this point in the history
  • Loading branch information
skomski committed May 28, 2015
1 parent 7a1e253 commit d4de7de
Show file tree
Hide file tree
Showing 6 changed files with 399 additions and 282 deletions.
5 changes: 5 additions & 0 deletions hooking/Hooking.h
Expand Up @@ -104,7 +104,12 @@ inline void nop(AddressType address, size_t length)
{
adjust_base(address);

DWORD oldProtect;
VirtualProtect((void*)address, length, PAGE_EXECUTE_READWRITE, &oldProtect);

memset((void*)address, 0x90, length);

VirtualProtect((void*)address, length, oldProtect, &oldProtect);
}

template<typename AddressType>
Expand Down

0 comments on commit d4de7de

Please sign in to comment.