fix: increased hid pruning time to 20 minutes

This commit is contained in:
evilsocket 2019-03-19 13:57:34 +01:00
parent 3e8d6512e1
commit 39f9a02c98
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 3 additions and 1 deletions

View file

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

View file

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