Squid
Last updated
Was this helpful?
Last updated
Was this helpful?
192.168.90.189
Used rustscan to find the initial port then nmap to do a service scan as Nmap scanning this whole box was very slow.
Nmap scan
Found Squid 4.14 running on this port.
Using curl to pull a webpage through the proxy.
Ran dirbuster through the proxy and found some interesting pages. Added a proxy in foxyproxy which let me view the web pages.
Dirbuster found an interesting page.
Page says undefined cmd in shell.php. Which would be using the system function. π Added ?cmd=whoami
Confirmed command injection. Also confirmed this is running as nt authority\system so a reverse shell from here would land straight to root... or nt authority\system.
Made a reverse shell exe with msfvennom.
Curled the shell onto the machine by cmd injection.
Confirmed the file was there. Had to send shell2.exe after the picture above because I messed up the first msfvenom command.
Ran file by sending the cmd for the exe in the browser.
Found that you can use the proxy to scan the machines internal ports.