Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 1.29 KB

README.md

File metadata and controls

29 lines (22 loc) · 1.29 KB

Digispark ATtiny85 USB Rubber Ducky Payloads

Arduino scripts holding BadUSB payloads for Windows, Linux or MacOS. These are built with Arduino using Digispark libraries

Windows payloads

Message on startup

A script that adds or overwrites an entry in Windows' registry editor as legalnoticecaption and legalnoticetext with a title and message. This enables a pop-up on startup with the specified title and message.

The windows CMD commands to perform such actions are the following:

Adding the entries

REG ADD HKML\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticecaption /t REG_SZ /d "YOUR_TITLE_TEXT" /f
REG ADD HKML\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticetext /t REG_SZ /d "YOUR_MESSAGE_TEXT" /f

Clearing the entries

REG DELETE HKML\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticecaption /f
REG DELETE HKML\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v legalnoticetext /f

In addition, the code provides a way to clear these registry entries by commenting the line #define BAD_USB at the top of the script in src/main.cpp. All other definitions and macros are written in the define.h file in include folder.