Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 727 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 727 Bytes

Clock-Hooker

alt text

Payload

Hook GetLocalTime(...) in kernelbase.dll for manipulate system time steps.

Payload 2

Hook GetTimeFormatEx(...) in kernelbase.dll to overwrite clock strings in process (ex: explorer.exe)

Requierments:

Microsoft Detours Library - https://github.com/microsoft/Detours

Compile:

  1. Unzip source code, open command line and enter to source directory
  2. SET DETOURS_TARGET_PROCESSOR=X64
  3. C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat
  4. NMAKE

Add detours.lib to Linker additional libraries.

Hooked Function:

  • GetLocalTime
  • GetTimeFormatEx