Skip to content

Commit 5a9e780

Browse files
authored
Update README.md
1 parent 9c47c01 commit 5a9e780

1 file changed

Lines changed: 30 additions & 34 deletions

File tree

README.md

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -204,42 +204,38 @@ Check out the `WiFiCredsDemo` or `AddRDPAdminAccount` for two example of executi
204204
-----
205205
## Simple Example Payload to execute a ScattRoll URL on Windows:
206206

207-
Modify the `src/main.cpp` file as follows:
208-
209-
```cpp
210-
#include <Arduino.h>
211-
#include <DigiKeyboardMultilang.h>
212-
#include <extendedLanguages.h> // Include ExtendedLanguages for additional layouts
213-
214-
DigiKeyboardMultilang keyboard(lang_de); // Use lang_de for German QWERTZ layout (or lang_us for US English)
215-
216-
const char* runCmdPld = "https://youtu.be/Hy8kmNEo1i8"; // ScattRoll URL Example
217-
218-
int redLED = 1;
219-
220-
void setup() {
221-
pinMode(redLED, OUTPUT); // Initialize the RED LED pin as an output
222-
digitalWrite(redLED, HIGH); // Turn on the RED LED while executing payload
223-
224-
// --- THE HID PAYLOAD STARTS HERE ---
225-
keyboard.delay(5000); // Wait 5 seconds to allow the OS to recognize the device
226-
keyboard.sendKeyStroke(KEY_R, KEY_MOD_GUI); // Win+R (0x08 = Left GUI/Windows key modifier)
227-
keyboard.delay(800); // Wait 0.8 seconds for the run dialog to open
228-
keyboard.println(runCmdPld); // Open a ScattRoll URL in the run dialog
229-
keyboard.delay(3000); // Wait 3 seconds for the browser to open
230-
keyboard.println("f");// YouTube fullscreen shortcut key = 'f'
231-
// --- THE HID PAYLOAD ENDS HERE ---
232-
233-
digitalWrite(redLED, LOW); // Turn off the RED LED after executing payload
234-
}
235-
236-
void loop() {
237-
// the loop function is intentionally left empty But if you want to repeat the payload,
238-
// you can add code here with your desired logic and delays instead of in setup().
239-
}
207+
Modify the `ducky_scripts\payload.ducky` file as follows:
208+
209+
```ducky
210+
REM ======================================
211+
REM Title: ScattRoll - YouTube Auto-Fullscreen
212+
REM Author: 3mrgnc3
213+
REM Target: Windows 10/11 with chrome based default browser
214+
REM ======================================
215+
216+
REM Configure USB device identity (processed before compilation)
217+
ATTACKMODE HID VID_16c0 PID_27db MAN_DigiKey PROD_ATTiny85_Ducky SERIAL_1337
218+
219+
DUCKY_LANG US
220+
DEFINE #HID_DELAY 1200
221+
222+
REM Wait 6 seconds for OS to recognize device and install drivers
223+
DELAY 6000
224+
225+
REM Open Run dialog (Win+R)
226+
GUI r
227+
DELAY #HID_DELAY
228+
229+
REM Open ScattRoll URL
230+
STRINGLN https://youtu.be/Hy8kmNEo1i8
231+
232+
REM Press 'f' for YouTube fullscreen after 4 seconds
233+
DELAY 4000
234+
STRINGLN f
235+
240236
```
241237

242-
Detailed Payload Explanations and Syntax can be found in the [Creating Custom Payloads](https://github.com/3mrgnc3/attiny85_ducky/wiki/Creating-Custom-Payloads) wiki page.
238+
Detailed Payload Explanations and Syntax can be found in the [Wiki](https://github.com/3mrgnc3/attiny85_ducky/wiki) page.
243239

244240

245241
Else, further inspiration for creating your payloads can be found by alternatively checking out the preexisting ones made available already by [**CedArctic** in the **DigiSpark-Scripts** repo](https://github.com/CedArctic/DigiSpark-Scripts).

0 commit comments

Comments
 (0)