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