Setting LD_PRELOAD
variable can define custom libraries to load before running a program. This variable is used by utilities such as proxychains to hook up network related functions. However, some applications may refuses to run if LD_PRELOAD
variable is presented, as an anti-hacking trick maybe.
Use ld-linux
to load the program with preloading libraries without setting the environment variable. man page
1 |
|
Note that the process must be passed as a path.
proxychains example:
1 |
|