HID: implement ducky SLEEP command

This commit is contained in:
Georg Lukas 2019-08-15 17:26:05 +02:00
parent 4a96bf641a
commit d2e449370c

View file

@ -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)
}
}
}