Skip to content

A PowerShell script for converting other PowerShell scripts to USB rubber ducky payloads

Notifications You must be signed in to change notification settings

seanthegeek/psduck

Repository files navigation

psduck

A PowerShell script for converting other PowerShell scripts to USB Rubber Ducky payloads

What this does

Backup your script before running this

  1. Cleans up your PowerShell code using Edit-DTWCleanScript
  2. Builds a Duckyscript that will quickly and discreetly (as possible) write your minified PowerShell script, save it, execute it, and delete it
  3. Uses encoder.jar to encode the Duckyscript to a USB Rubber Ducky payload named inject.bin

To use your new payload, simply copy inject.bin to a microSD card, and insert the card in the USB Rubber Ducky.

The generated payload is designed to work on Windows 7 or higher. Just plug it in.

Requirements

Licensing

psduck.ps1 is licensed under the Apache 2.0 license. Everything else in here are dependencies that were written by someone else who didn't include a license :
I'm using them under Fair Use, considering the authors released these files to the public for free.

About

A PowerShell script for converting other PowerShell scripts to USB rubber ducky payloads

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published