mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
fix: increased hid pruning time to 20 minutes
This commit is contained in:
parent
3e8d6512e1
commit
39f9a02c98
2 changed files with 3 additions and 1 deletions
|
@ -52,6 +52,8 @@ func (mod *HIDRecon) prepInjection() (error, *network.HIDDevice, []*Command) {
|
|||
dev, found := mod.Session.HID.Get(mod.sniffAddr)
|
||||
if found == false {
|
||||
mod.Warning("device %s is not visible, will use HID type %s", mod.sniffAddr, tui.Yellow(mod.sniffType))
|
||||
} else if dev.Type == network.HIDTypeUnknown {
|
||||
mod.Warning("device %s type has not been detected yet, falling back to '%s'", mod.sniffAddr, tui.Yellow(mod.sniffType))
|
||||
}
|
||||
|
||||
var builder FrameBuilder
|
||||
|
|
|
@ -61,7 +61,7 @@ func (mod *HIDRecon) onDeviceDetected(buf []byte) {
|
|||
}
|
||||
}
|
||||
|
||||
var maxDeviceTTL = 10 * time.Minute
|
||||
var maxDeviceTTL = 20 * time.Minute
|
||||
|
||||
func (mod *HIDRecon) devPruner() {
|
||||
mod.waitGroup.Add(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue