http.proxy - rhaidiz/bettercap GitHub Wiki

A full featured HTTP transparent proxy that can be scripted using javascript modules. If used together with a spoofer, all HTTP traffic will be redirected to it and it will automatically handle port redirections as needed.

Commands

command description
http.proxy on Start the HTTP proxy.
http.proxy off Stop the HTTP proxy.

Parameters

parameter default description
http.port 80 HTTP port to redirect when the proxy is activated.
http.proxy.address <interface address> Address to bind the HTTP proxy to.
http.proxy.port 8080 Port to bind the HTTP proxy to.
http.proxy.sslstrip false Enable or disable SSL stripping.
http.proxy.script Path of a proxy module script.
http.proxy.injectjs URL, path or javascript code to inject into every HTML page.

Examples

Will ARP spoof the whole network, enable sslstrip and inject a "Hello World" javascript alert to every HTML page being visited:

set http.proxy.injectjs alert("Hello World")
set http.proxy.sslstrip true

http.proxy on
arp.spoof on