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.

Parameter Default Description
http.server.address <interface address> Address to bind the HTTP server to.
http.server.path . Server folder.
http.server.port 80 Port 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"