Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/extensions/detect_ready.txt
2968 views
1
EXTENSION DETECT_READY
2
REM VERSION 1.1
3
REM AUTHOR: Korben
4
5
REM_BLOCK DOCUMENTATION
6
USAGE:
7
Extension runs inline (here)
8
Place at beginning of payload (besides ATTACKMODE) to act as dynamic
9
boot delay
10
11
TARGETS:
12
Any system that reflects CAPSLOCK will detect minimum required delay
13
Any system that does not reflect CAPSLOCK will hit the max delay of 3000ms
14
END_REM
15
16
REM CONFIGURATION:
17
DEFINE #RESPONSE_DELAY 25
18
DEFINE #ITERATION_LIMIT 120
19
20
VAR $C = 0
21
WHILE (($_CAPSLOCK_ON == FALSE) && ($C < #ITERATION_LIMIT))
22
CAPSLOCK
23
DELAY #RESPONSE_DELAY
24
$C = ($C + 1)
25
END_WHILE
26
CAPSLOCK
27
END_EXTENSION
28
29