Need help with DuckToolkit?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

285 Stars 116 Forks GNU General Public License v3.0 35 Commits 9 Opened issues


Encoding Tools for Rubber Ducky

Services available


Need anything else?

Contributors list

# 84,934
17 commits
# 339,575
7 commits
# 530,948
1 commit


Encoding Tools for Rubber Ducky. The duck tools are available in the browser at From here you can also generate payloads from a selection of predefined scripts and templates.


The Duck Toolkit is an open source Penetration Testing tool for authorized network auditing and security analysis purposes only where permitted. Users are solely responsible for compliance with all laws of their locality. The Duck Toolkit software developers and affiliates claim no responsibility for unauthorized or unlawful use.


Download the release and install with

python install


sudo pip install --upgrade ducktoolkit

There are no external dependencies other than python. This has been tested on Ubuntu and Windows 10


The DuckToolkit is provided with a script that will allow you to easily encode and decode your files.


To encode point the script at your duckcode.txt file, select an output and a language as show in the example below: -e -l gb /path/to/duck_text.txt /path/to/output.bin


To decode point the script at your inject.bin file, select an output and a language as show in the example below: -d -l gb /path/to/inject.bin /path/to/output.txt


The toolkit is python 3 compatible and can also be imported as a library.

from ducktoolkit import encoder

duck_text = 'STRING Hello' language = 'gb' duck_bin = encoder.encode_script(duck_text, language)


The encoder can only deal with certain Command keys and key combinations. Please see for details on supported commands.

The decoder is a best effort decoder. It will attempt to restore all command keys and strings. But its a lot harder going backwards. You will NOT be able to generate a valid duck script from an inject.bin


  • Support more keyboard layouts / languages.
  • Improve the decoder.
  • Pip Installation

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.