mirror of
https://github.com/bettercap/bettercap.git
synced 2024-09-16 05:30:21 -07:00
Page:
dns.spoof
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
dns.spoof
evilsocket edited this page 2018-09-20 14:47:13 +02:00
Replies to DNS messages with spoofed responses.
Commands
command | description |
---|---|
dns.spoof on |
Start the DNS spoofer in the background. |
dns.spoof off |
Stop the DNS spoofer in the background. |
Parameters
parameter | default | description |
---|---|---|
dns.spoof.domains |
Comma separated values of domain names to spoof. | |
dns.spoof.address |
<interface address> |
IP address to map the domains to. |
dns.spoof.all |
false |
If true the module will reply to every DNS request, otherwise it will only reply to the one targeting the local pc. |
dns.spoof.hosts |
If not empty, this hosts file will be used to map domains to IP addresses. |
Examples
Every DNS request coming to this computer for the example.com
domain will resolve to the address 1.2.3.4
:
> set dns.spoof.domains example.com; set dns.spoof.address 1.2.3.4; dns.spoof on
Use a hosts file instead of the dns.spoof.*
parameters for multiple mappings:
> !cat ./dns.spoof.hosts
1.2.3.4 facebook.com
1.2.3.5 cnn.com
1.2.4.6 www.google.com
> set dns.spoof.hosts ./dns.spoof.hosts; dns.spoof on
- 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