Working with Web Services

Hack The Box Academy Module: Linux Fundamentals

The section Working with Web Services belongs to Linux Fundamentals module.

Don't know how to connect to HTB VPN? Click here.

Find a way to start a simple HTTP server inside Pwnbox or your local VM using "npm". Submit the command that starts the web server on port 8080 (use the short argument to specify the port number).

The npm package is required if you actually want to run the HTTP server (the target machine doesn't allow that), but the command used is:

http-server -p 8080

Find a way to start a simple HTTP server inside Pwnbox or your local VM using "php". Submit the command that starts the web server on the localhost (127.0.0.1) on port 8080.

Starting a local php server is as simple as:

php -S 127.0.0.1:8080

Join HTB Academy (Get 20 Cubes Free)

Join Now