diff --git a/modules/hid/hid_inject.go b/modules/hid/hid_inject.go index fbf90ddc..bcba94c5 100644 --- a/modules/hid/hid_inject.go +++ b/modules/hid/hid_inject.go @@ -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 diff --git a/modules/hid/hid_recon.go b/modules/hid/hid_recon.go index 4cf6b650..b4771a03 100644 --- a/modules/hid/hid_recon.go +++ b/modules/hid/hid_recon.go @@ -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)