Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages