Merge pull request #610 from ge0rg/hid_sleep

HID: implement ducky SLEEP command
This commit is contained in:
evilsocket 2019-08-17 13:57:54 -04:00 committed by GitHub
commit f89d8b0144
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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