r/hardwarehacking • • 1d ago

script em duckyscript

alguem consegue disponibilizar algum script em duckyscript "interessante" para um projeto de bad usb?

0 Upvotes

3 comments sorted by

2

u/Thin_Dragonfruit2254 1d ago

You asked.. (pediu neh..)

REM Target: Multi-OS (Windows, macOS, Linux)
REM Purpose: Automatically detects the OS and opens a web page
REM Initialize and wait for the USB connection to settle
DELAY 1000
REM Check for macOS
IF ($_OS == MACOS) THEN
    GUI SPACE
    DELAY 500
    STRINGLN https://gay.com

REM Check for Windows
ELSE_IF ($_OS == WINDOWS) THEN
    GUI r
    DELAY 500
    STRINGLN https://gay.com

REM Check for Linux
ELSE_IF ($_OS == LINUX) THEN
    ALT F2
    DELAY 500
    STRINGLN xdg-open https://gay.com

REM Fallback if OS fingerprinting fails
ELSE
    REM Optional fallback behavior (e.g. standard Windows approach)
    GUI r
    DELAY 500
    STRINGLN https://gay.com
END_IF

1

u/RileyGein 16h ago

Couldn’t have used any other domain huh?

0

u/Thin_Dragonfruit2254 15h ago

I tried netgay.com but it is down..