Attacks and Exploits
Which Linux environment variable makes the dynamic loader load a tester's shared library before a program's normal libraries?
Show the answer
Correct answerC. LD_PRELOAD
AWhy not this: It sets the directories searched for commands, not which shared libraries a program loads.
BWhy not this: It controls where shell history is saved, which relates to log tampering, not library loading.
CWhy this is right: It tells the dynamic loader to load the listed libraries first, so their code runs inside the program.
DWhy not this: It sets the shell's field separator, which some shell escapes abuse, but it loads no libraries.
LD_PRELOAD lists shared libraries the dynamic loader maps first, so the tester's code runs inside the target program. PATH only sets where commands are searched for; it does not make a running program load a library.