Author: slartibartfast
Initial Enumaration
sql
1 | Starting Nmap 7.92 ( https://nmap.org ) at 2022-10-12 11:23 IST |
Web
Checking the Page we see
Opening the page we see a basic cred page.
Checking the calls we see an photobomb.js
Command Injection on filetype;
Using Bash Reverse Shell
Privileage Escalation
checking sudo -l
Checking the script
Lets create a symlink of /etc/crontab
to /home/wizard/photobomb/log/photobomb.log.old
And create a /tmp/rev.sh
and echo '* * * * * root /tmp/rev.sh&' > photobomb.log
in the photobomb.log
and running sudo /opt/cleanup.sh
it will update the crontab