Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hak5
GitHub Repository: hak5/usbrubberducky-payloads
Path: blob/master/payloads/examples/LED/LED-example1.txt
2971 views
1
REM The LED_R command will enable the red LED.
2
3
REM To show only a red LED disable any default LED behavior (such as storage or payload processing) by executing LED_OFF before LED_R.
4
5
ATTACKMODE HID STORAGE
6
WHILE TRUE
7
IF ($_CAPSLOCK_ON == TRUE) THEN
8
LED_OFF
9
LED_R
10
ELSE IF ($_CAPSLOCK_ON == FALSE) THEN
11
LED_OFF
12
END_IF
13
END_WHILE
14
15
REM The LED will turn solid red while caps lock is on.
16