mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: implemented wifi.deauth.skip variable (closes #375)
This commit is contained in:
parent
41084bec39
commit
ca734335fa
3 changed files with 50 additions and 1 deletions
|
@ -33,6 +33,7 @@ type WiFiModule struct {
|
|||
skipBroken bool
|
||||
pktSourceChan chan gopacket.Packet
|
||||
pktSourceChanClosed bool
|
||||
deauthSkip []net.HardwareAddr
|
||||
apRunning bool
|
||||
apConfig packets.Dot11ApConfig
|
||||
writes *sync.WaitGroup
|
||||
|
@ -49,6 +50,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
ap: nil,
|
||||
skipBroken: true,
|
||||
apRunning: false,
|
||||
deauthSkip: []net.HardwareAddr{},
|
||||
writes: &sync.WaitGroup{},
|
||||
reads: &sync.WaitGroup{},
|
||||
chanLock: &sync.Mutex{},
|
||||
|
@ -99,6 +101,11 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
|||
return w.startDeauth(bssid)
|
||||
}))
|
||||
|
||||
w.AddParam(session.NewStringParameter("wifi.deauth.skip",
|
||||
"",
|
||||
"",
|
||||
"Comma separated list of BSSID to skip while sending deauth packets."))
|
||||
|
||||
w.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