Modify program behavior with LD_PRELOAD
Conclusions
There are no limits to your creativity when using LD_PRELOAD
. Discover frequently used library functions, write a wrapper for them, and introduce minor changes. If you define and export the variable in a shell, it will apply to all processes you launch in that shell, without you needing to prepend the definition to each command.
Infos
- GNU C Library: https://www.gnu.org/software/libc/
- strace: https://github.com/strace/strace
- ltrace: https://gitlab.com/cespedes/ltrace
- Awesome LD_PRELOAD: https://github.com/gaul/awesome-ld-preload
« Previous 1 2 3
Buy this article as PDF
Express-Checkout as PDF
Price $2.95
(incl. VAT)
(incl. VAT)