mirror of
https://github.com/bettercap/bettercap.git
synced 2024-11-03 04:00:07 -08:00
Page:
tcp.modules
Pages
Caplets
Changing the Prompt
Compilation on Android
Compilation on Linux and macOS
Compilation on Windows
Cross Compilation ( ARM example )
Home
Interactive Mode
Known Issues
Using with Docker
any.proxy
api.rest
arp.spoof
ble
caplets.update
dhcp6.spoof
dns.spoof
events.stream
gps
hid
http.modules
http.proxy
http.server
https.proxy
https.server
mac.changer
mysql.server
net.probe
net.recon
net.sniff
packet.proxy
syn.scan
tcp.modules
tcp.proxy
ticker
update.check
wifi
wol
3
tcp.modules
evilsocket edited this page 2018-08-17 15:45:04 +02:00
Table of Contents
The tcp.proxy
module can be scripted using javascript files that must declare at least one of the following functions:
// called when the script is loaded
function onLoad() {
}
// called when data is available
// return an array of bytes to override "data"
function onData(from, to, data) {
}
Modules can change the data
buffer and return it, signaling the proxy to override the original buffer.
Builtin Functions
Modules can use the following builtin functions.
function | description |
---|---|
readFile("/path/to/file") |
Return the contents of a file as a string. |
log("message") |
Log a message in the interactive session (its level will be INFO ). |
env("iface.ipv4") |
Read a variable. |
env("foo", "bar") |
Set a variable. |
- Known Issues
- Using with Docker
- Compilation
- Interactive Mode and Command Line Arguments
- Changing the Prompt
- Caplets
Modules
- Core
- HID on 2.4Ghz (mousejacking)
- Bluetooth Low Energy
- 802.11
- Ethernet and IP
- Servers
- Rogue Servers
- Utils