https://github.com/0xanthonyw/duckyirautomation
This project demonstrates how to utilize the DSTIKE White Ducky, a powerful ATmega32U4-based USB attack tool, for automating tasks and executing advanced BadUSB scripts with integrated IR capabilities.
https://github.com/0xanthonyw/duckyirautomation
automation badusb dstike duckyscript ethical-hacking hacking-tools hak5 infrared keyboard-emulation keystroke-injection payloads penetration-testing powershell security-tools uac-bypass usb-automation usb-rubber-ducky white-ducky
Last synced: about 2 months ago
JSON representation
This project demonstrates how to utilize the DSTIKE White Ducky, a powerful ATmega32U4-based USB attack tool, for automating tasks and executing advanced BadUSB scripts with integrated IR capabilities.
- Host: GitHub
- URL: https://github.com/0xanthonyw/duckyirautomation
- Owner: 0xAnthonyW
- License: mit
- Created: 2025-01-07T14:32:08.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-27T16:48:35.000Z (3 months ago)
- Last Synced: 2025-02-27T23:39:08.908Z (3 months ago)
- Topics: automation, badusb, dstike, duckyscript, ethical-hacking, hacking-tools, hak5, infrared, keyboard-emulation, keystroke-injection, payloads, penetration-testing, powershell, security-tools, uac-bypass, usb-automation, usb-rubber-ducky, white-ducky
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DuckyIRAutomation
This project demonstrates how to use the DSTIKE White Ducky to automate the execution of a PowerShell script with elevated privileges, handle User Account Control (UAC) prompts, and leverage the power of the DuckyScript language.
## Overview
The script utilizes the DSTIKE White Ducky's keyboard emulation capabilities to:
1. Open the Run dialog.
2. Launch PowerShell with elevated privileges.
3. Execute a specified PowerShell script.
4. Automatically accept the UAC prompt.## Getting Started
### Prerequisites
- DSTIKE White Ducky with or without IR capabilities.
- A PowerShell script to be executed (e.g., D:\Test2.ps1).
- Basic understanding of DuckyScript syntax.### Script Details
Below is the DuckyScript used in this project:
```plaintext
REM Open Run dialog and wait for it to appear
DELAY 1000
GUI r
DELAY 1000REM Type the PowerShell command in segments to avoid issues
STRING powershell -Command "
DELAY 50
STRING Start-Process powershell -ArgumentList '
DELAY 50
STRING -NoProfile -ExecutionPolicy Bypass -File \"
DELAY 50
STRING D:\\slide.ps1\"' -Verb RunAs"
DELAY 100REM Execute the command
ENTER
DELAY 4000REM Confirm UAC prompt (Alt+Y = "Yes")
ALT y
```