Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/examples/Randomization/Randomization-example2.txt
2968 views
1
REM Example Random Integer
2
ATTACKMODE HID STORAGE
3
4
LED_OFF
5
VAR $A = $_RANDOM_INT
6
WHILE ($A > 0)
7
LED_G
8
DELAY 500
9
LED_OFF
10
DELAY 500
11
$A = ($A - 1)
12
END_WHILE
13
14
15
REM Each time this payload is executed, the LED will randomly blink between 1 and 9 times.
16
17