Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/examples/Button/Button-example5.txt
2968 views
1
BUTTON_DEF
2
WHILE TRUE
3
LED_R
4
DELAY 1000
5
LED_OFF
6
DELAY 1000
7
END_WHILE
8
END_BUTTON
9
10
STRING Press the button at any point to blink the LED red
11
WHILE TRUE
12
STRING .
13
DELAY 1000
14
END_WHILE
15
16
REM If the button is pressed at any point in the payload it will stop typing “.” and the LED will start blink red until the device is unplugged.
17
18