mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
new: hid.inject now supports non visible devices (talking directly to the dongle) via the hid.force.type parameter
This commit is contained in:
parent
a8ecb5472f
commit
d8d208ae17
4 changed files with 58 additions and 10 deletions
|
@ -36,6 +36,10 @@ func (b MicrosoftBuilder) frameFor(template []byte, cmd *Command) []byte {
|
|||
}
|
||||
|
||||
func (b MicrosoftBuilder) BuildFrames(dev *network.HIDDevice, commands []*Command) error {
|
||||
if dev == nil {
|
||||
return fmt.Errorf("the microsoft frame injection requires the device to be visible")
|
||||
}
|
||||
|
||||
tpl := ([]byte)(nil)
|
||||
dev.EachPayload(func(p []byte) bool {
|
||||
if len(p) == 19 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue