mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
Merge pull request #610 from ge0rg/hid_sleep
HID: implement ducky SLEEP command
This commit is contained in:
commit
f89d8b0144
1 changed files with 4 additions and 0 deletions
|
@ -140,5 +140,9 @@ func (mod *HIDRecon) doInjection() {
|
|||
time.Sleep(frame.Delay)
|
||||
}
|
||||
}
|
||||
if cmd.Sleep > 0 {
|
||||
mod.Debug("sleeping %dms after command #%d ...", cmd.Sleep, i)
|
||||
time.Sleep(time.Duration(cmd.Sleep)*time.Millisecond)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue