Skip to content

http.server

A simple HTTP server, used to serve files and scripts across the network.

Start the HTTP server in the background.

Stop the HTTP server in the background.

ParameterDefaultDescription
http.server.address<interface address>Address to bind the http server to.
http.server.path.Server folder.
http.server.port80Port to bind the http server to.

One liner to serve /var/www/html:

Terminal window
sudo bettercap -eval "set http.server.path /var/www/html; http.server on"