mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: added a mutex to write ops in the hid module
This commit is contained in:
parent
e0e1f4e6df
commit
d21f3b447a
4 changed files with 11 additions and 0 deletions
|
@ -7,6 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func (mod *HIDRecon) doHopping() {
|
||||
mod.writeLock.Lock()
|
||||
defer mod.writeLock.Unlock()
|
||||
|
||||
if mod.inPromMode == false {
|
||||
if err := mod.dongle.EnterPromiscMode(); err != nil {
|
||||
mod.Error("error entering promiscuous mode: %v", err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue