mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
ced5a46c5c
commit
38c637fcf7
1 changed files with 1 additions and 2 deletions
|
@ -255,9 +255,8 @@ func (w *WDiscovery) sendDeauthPacket(ap net.HardwareAddr, client net.HardwareAd
|
||||||
|
|
||||||
func (w *WDiscovery) startDeauth() error {
|
func (w *WDiscovery) startDeauth() error {
|
||||||
isTargetingAP := len(w.apTarget) > 0
|
isTargetingAP := len(w.apTarget) > 0
|
||||||
isTargetingCLI := len(w.cliTarget) > 0
|
|
||||||
|
|
||||||
if isTargetingAP {
|
if isTargetingAP {
|
||||||
|
isTargetingCLI := len(w.cliTarget) > 0
|
||||||
if isTargetingCLI {
|
if isTargetingCLI {
|
||||||
// deauth a specific client
|
// deauth a specific client
|
||||||
w.sendDeauthPacket(w.apTarget, w.cliTarget)
|
w.sendDeauthPacket(w.apTarget, w.cliTarget)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue