Debug process with non-standard LD path. #3859
Replies: 2 comments 1 reply
-
|
The error yield by Ghidra is |
Beta Was this translation helpful? Give feedback.
-
|
@TommyJerryMairo So the basic issue here is that gdb needs to be directed to the correct libc. I think (and let me know if I'm wrong) following the standard procedure for doing this via the LD_PRELOAD environment variable should work (see, for example, http://truthbk.github.io/gdb-ld_preload-and-libc). That said, Ghidra might complicate that. You might need to add LD_PRELOAD via -D to the ghidraRun/ghidraDebug scripts. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm doing a challenge from a CTF, which provides an ELF executable and a libc.so like Cache Me Outside on pico. I've placed the libc.so and the executable in the same directory where the provided libc could be correctly recognized while running via commandline. However, when imported into Ghidra(both the executable and the libc.so), the debugger attempted to use
/usr/lib/libc.so.6which is different from the provided. By any chance could I force Ghidra to employ the imported libc when debugging the executable, instead of the system default one?Beta Was this translation helpful? Give feedback.
All reactions