Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/examples/Randomization/Randomization-example1.txt
2968 views
1
REM Example Random Keys
2
ATTACKMODE HID STORAGE
3
DELAY 2000
4
5
BUTTON_DEF
6
RANDOM_CHARACTER
7
END_BUTTON
8
9
STRINGLN Here are 10 random lowercase letters:
10
VAR $TIMES = 10
11
WHILE ($TIMES > 0)
12
RANDOM_LOWERCASE_LETTER
13
$TIMES = ($TIMES - 1)
14
END_WHILE
15
ENTER
16
ENTER
17
STRINGLN Here are 20 random numbers:
18
VAR $TIMES = 20
19
WHILE ($TIMES > 0)
20
RANDOM_NUMBER
21
$TIMES = ($TIMES - 1)
22
END_WHILE
23
ENTER
24
ENTER
25
STRINGLN Here are 3 random special characters:
26
RANDOM_SPECIAL
27
RANDOM_SPECIAL
28
RANDOM_SPECIAL
29
STRINGLN Press the button for a random character:
30
31
32
33
REM This payload will type:
34
REM 10 random lowercase letters, per the while loop.
35
REM 20 random numbers, per the while loop.
36
REM 3 random special characters.
37
REM The payload will then instruct the user to press the button.
38
REM On each press of the button, the BUTTON_DEF will execute.
39
REM This special functions contains the RANDOM_CHARACTER command, and thus a random character will be typed.
40