Skip to content

C++ library that is loaded before the binary and hooks the `time` function

Notifications You must be signed in to change notification settings

StackOverflowExcept1on/ld-preload-trick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ld-preload-trick

Build Status

C++ library that is loaded before the binary and hooks the time function

Requirements

  • cmake
  • g++ compiler

Building

./build.sh

Running

LD_PRELOAD=./build/bin/libhook.so ./build/bin/demo
[+] library is loaded

[!] hooked time(...) function
[!] original time(...) at 0x7fff261f2be0
    original time(...) = 1675958710
    patching result to 0
time(...) = 0 (in binary)

[-] library has been unloaded

About

C++ library that is loaded before the binary and hooks the `time` function

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published