mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
Implemented a way to not send deauthentication and/or association packets to AP's for which key material was already acquired
This commit is contained in:
parent
8ae28f4b3d
commit
a0a0963cd5
3 changed files with 34 additions and 0 deletions
|
@ -49,9 +49,11 @@ type WiFiModule struct {
|
|||
deauthSkip []net.HardwareAddr
|
||||
deauthSilent bool
|
||||
deauthOpen bool
|
||||
deauthAcquired bool
|
||||
assocSkip []net.HardwareAddr
|
||||
assocSilent bool
|
||||
assocOpen bool
|
||||
assocAcquired bool
|
||||
filterProbeSTA *regexp.Regexp
|
||||
filterProbeAP *regexp.Regexp
|
||||
apRunning bool
|
||||
|
@ -80,9 +82,11 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
deauthSkip: []net.HardwareAddr{},
|
||||
deauthSilent: false,
|
||||
deauthOpen: false,
|
||||
deauthAcquired: false,
|
||||
assocSkip: []net.HardwareAddr{},
|
||||
assocSilent: false,
|
||||
assocOpen: false,
|
||||
assocAcquired: false,
|
||||
showManuf: false,
|
||||
shakesAggregate: true,
|
||||
writes: &sync.WaitGroup{},
|
||||
|
@ -209,6 +213,10 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
"true",
|
||||
"Send wifi deauth packets to open networks."))
|
||||
|
||||
mod.AddParam(session.NewBoolParameter("wifi.deauth.acquired",
|
||||
"false",
|
||||
"Send wifi deauth packets from AP's for which key material was already acquired."))
|
||||
|
||||
assoc := session.NewModuleHandler("wifi.assoc BSSID", `wifi\.assoc ((?:[a-fA-F0-9:]{11,})|all|\*)`,
|
||||
"Send an association request to the selected BSSID in order to receive a RSN PMKID key. Use 'all', '*' or a broadcast BSSID (ff:ff:ff:ff:ff:ff) to iterate for every access point.",
|
||||
func(args []string) error {
|
||||
|
@ -272,6 +280,10 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
"false",
|
||||
"Send association requests to open networks."))
|
||||
|
||||
mod.AddParam(session.NewBoolParameter("wifi.assoc.acquired",
|
||||
"false",
|
||||
"Send association to AP's for which key material was already acquired."))
|
||||
|
||||
mod.AddHandler(session.NewModuleHandler("wifi.ap", "",
|
||||
"Inject fake management beacons in order to create a rogue access point.",
|
||||
func(args []string) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue