mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: all hid periods are now configurable by dedicated parameters
This commit is contained in:
parent
17c639126d
commit
f6649aa82b
3 changed files with 198 additions and 156 deletions
|
@ -1,6 +1,7 @@
|
|||
package hid
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/bettercap/bettercap/network"
|
||||
|
@ -14,6 +15,10 @@ func (mod *HIDRecon) isSniffing() bool {
|
|||
}
|
||||
|
||||
func (mod *HIDRecon) setSniffMode(mode string) error {
|
||||
if !mod.Running() {
|
||||
return fmt.Errorf("please turn hid.recon on")
|
||||
}
|
||||
|
||||
mod.sniffLock.Lock()
|
||||
defer mod.sniffLock.Unlock()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue