http.server

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

Commands

http.server on

Start the HTTP server in the background.

http.server off

Stop the HTTP server in the background.

Parameters

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

Examples

One liner to serve /var/www/html:

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