mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 16:13:48 -07:00
fix: using fallback hid.device.type if the device was detected but not its type
This commit is contained in:
parent
af1bfb3894
commit
3e8d6512e1
1 changed files with 1 additions and 4 deletions
|
@ -55,13 +55,10 @@ func (mod *HIDRecon) prepInjection() (error, *network.HIDDevice, []*Command) {
|
|||
}
|
||||
|
||||
var builder FrameBuilder
|
||||
if found {
|
||||
if found && dev.Type != network.HIDTypeUnknown {
|
||||
// get the device specific protocol handler
|
||||
builder, found = FrameBuilders[dev.Type]
|
||||
if found == false {
|
||||
if dev.Type == network.HIDTypeUnknown {
|
||||
return errNoType(mod.sniffAddr), nil, nil
|
||||
}
|
||||
return errNotSupported(dev), nil, nil
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue