StackOverflowExcept1on / ld-preload-trick

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

Repository from Github https://github.comStackOverflowExcept1on/ld-preload-trickRepository from Github https://github.comStackOverflowExcept1on/ld-preload-trick

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


Languages

Language:C++ 63.6%Language:CMake 25.7%Language:Shell 10.7%