new: implemented wifi.deauth.skip variable (closes #375)

This commit is contained in:
evilsocket 2019-01-18 16:19:30 +01:00
commit ca734335fa
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 50 additions and 1 deletions

View file

@ -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 {