/ducky2python

Convert DuckyScript (USB Rubber Ducky) to Python Applications :snake:

Primary LanguageJavaScriptGNU Affero General Public License v3.0AGPL-3.0

ducky2python 🐍

Convert DuckyScript scripts (of the hak5 USB Rubber Ducky) to Python programs that can run on your computer without a rubber ducky.

Why DuckyScript and why Python? It's easy! DuckyScript is simple and easy to learn and has become a standard in the BadUSB and pentesting community, Python also is easy to be written and is arguably one of the most portable programming languages available. Combine the two using ducky2python and you have a really easy to learn and powerfull automation tool in your hands!

⭐ UPDATE: Now ducky2python has a website which you can use instead of downloading and running the Python program! See instructions bellow.

Usage Instructions (through website) 🌐

  1. Visit https://cedarctic.github.io/ducky2python
  2. Paste & Convert your script
  3. Copy and paste the converted script to a text editor and save the file with a .py extension
  4. If you want to run the script you first have to install Python 3 and then pyautogui: pip install pyautogui

Installation / Usage 💻

  1. Install Python 3 if you don't have it.
  2. Download the ducky2python.py file from here.
  3. Run it.
  4. Drag and drop the .txt file of the DuckyScript you want converted and hit enter.
  5. You will find the converted script in the directory of ducky2python.py with the name PythonScript.py
  6. If you want to run the script you first have to install pyautogui: pip install pyautogui

Credits

  • hak5 for the USB Rubber Ducky and DuckyScript
  • The awesome Python community
  • asweigart for pyautogui

License

GNU-AGPLv3.0

Copyright (c) 2018 CedArctic