usbrubberducky-payloads/payloads/examples/Randomization/Randomization-example3.txt

19 lines
335 B
Plaintext

REM Example Random Integer Example with Range
ATTACKMODE HID STORAGE
LED_OFF
$_RANDOM_MIN = 20
$_RANDOM_MAX = 50
VAR $A = $_RANDOM_INT
WHILE ($A > 0)
LED_G
DELAY 500
LED_OFF
DELAY 500
$A = ($A - 1)
END_WHILE
REM Each time this payload is executed, the LED will blink a random number of times between 20 and 50.