http.server
A simple HTTP server, used to serve files and scripts across the network.
Commands
Section titled “Commands”http.server on
Section titled “http.server on”Start the HTTP server in the background.
http.server off
Section titled “http.server off”Stop the HTTP server in the background.
Parameters
Section titled “Parameters”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. |
Examples
Section titled “Examples”One liner to serve /var/www/html
:
sudo bettercap -eval "set http.server.path /var/www/html; http.server on"