Slonik
We find a nfs and mount it: Service folder is owner by 1337
So we can create a user called 1337
Then accessing the folder:
Now we have hash of password:
Now looking at .bash_history:
Now using ssh port forwarding:
Now we can open postgres
Now using this article We can read files:
Using psql oneliner:
Using a reverse shell command:
Now we can get ssh access: Using pspy:
This /usr/bin/backup:
Now we found the folder that was being backed up at
/var/lib/postgresql/14/main
Now copying bash files to the directory and giving setuid bit: cp /bin/bash mybash
chmod u+s mybash
Now in /opt/backups/current/
we have mybash and executing it we get a root shell:
Last updated
Was this helpful?