Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/examples/LED/LED-example2.txt
2971 views
1
REM The LED_G command will enable the green LED.
2
3
ATTACKMODE HID STORAGE
4
BUTTON_DEF
5
LED_OFF
6
STOP_PAYLOAD
7
END_BUTTON
8
WHILE TRUE
9
LED_OFF
10
LED_G
11
DELAY 1000
12
LED_OFF
13
LED_R
14
DELAY 1000
15
END_WHILE
16
17
REM The LED will alternate between solid red and solid green at one second intervals.
18
REM Pressing the button will turn the LED off and stop the payload.
19