Skip to content

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
dallaswinger authored Sep 20, 2022
1 parent a0dbc83 commit 452dcca
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion payloads/examples/Randomization/Randomization-example3.txt
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
REM Example Random Integer Example with RangeATTACKMODE HID STORAGELED_OFF$_RANDOM_MIN = 20$_RANDOM_MAX = 50VAR $A = $_RANDOM_INTWHILE ($A > 0) LED_G DELAY 500 LED_OFF DELAY 500END_WHILEREM Each time this payload is executed, the LED will blink a random number of times between 20 and 50.
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.

0 comments on commit 452dcca

Please sign in to comment.