From d2e449370cc4273930792b62a78d9bd892108b90 Mon Sep 17 00:00:00 2001 From: Georg Lukas Date: Thu, 15 Aug 2019 17:26:05 +0200 Subject: [PATCH] HID: implement ducky SLEEP command --- modules/hid/hid_inject.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/hid/hid_inject.go b/modules/hid/hid_inject.go index bcba94c5..cca8b877 100644 --- a/modules/hid/hid_inject.go +++ b/modules/hid/hid_inject.go @@ -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) + } } }