mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
HID: implement ducky SLEEP command
This commit is contained in:
parent
4a96bf641a
commit
d2e449370c
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