Skip to main content

Easy-to-use keystroke injection payload generator for the Arduino.

Project description

📦 arduck

License: GPL v3 Python version: 3.12+ Common Changelog

Overview

This package provides a simple and flexible way to generate keystroke injection scripts. It supports a variety of boards and keyboard layouts.

Rather than relying on expensive proprietary devices (rubberducky cough cough), you can use any Arduino-compatible board that supports the Keyboard.h library.

Installation

Install the package from PyPI by running:

$ pip install arduck

Usage

Start generating payloads right away with the duck console script:

$ duck "helloworld!\n"

This will create a sketch.ino file in the current working directory. Compiling and uploading the code to an Arduino board will make it emulate the keystrokes when plugged into a computer. Be ready to quickly disconnect the board to avoid triggering the payload on your machine.

Special Keys

To inject special keys (e.g. CAPS_LOCK), wrap them in <>. When specifying a special key, the KEY_ prefix can be omitted.

$ duck "<F1>"

All default special keys are listed here. Note that some keyboards may have support for other non-standard keys.

Key Combinations

To emulate pressing multiple keys at once wrap them in <>, separated by a +.

$ duck "<LEFT_GUI+r>calc.exe\n"

Add delays

An optional delay in milliseconds can be added in between strings in the input.

$ duck "<LEFT_GUI+r>" 700 "notepad.exe\n" 500 "hello\n" "world!\n"

More Features

Check out the official documentation for a more comprehensive list of features.

A Word of Caution

Be careful when using and testing arduino scripts that emulate keyboard and mouse presses, because they might make it difficult to program your board. And please, always ask for permission from the owner of the machine before plugging in any external devices. Keep in mind that, if abused, this tool has the potential to cause serious harm.

This software is distributed ‘as is’ and without warranties of any kind, either express or implied. Use of the software is at your own risk.

Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

arduck-0.0.5.tar.gz (73.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

arduck-0.0.5-py3-none-any.whl (56.3 kB view details)

Uploaded Python 3

File details

Details for the file arduck-0.0.5.tar.gz.

File metadata

  • Download URL: arduck-0.0.5.tar.gz
  • Upload date:
  • Size: 73.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for arduck-0.0.5.tar.gz
Algorithm Hash digest
SHA256 a53ca5b25e95ce43109417297c595c4d48d9e89c1b3fa4ac12fd56060603f109
MD5 96087d80ffc7a2ae19a8773a7d5dc786
BLAKE2b-256 c7767a1db7d103d290dfd6fcc9d823fb5145aa43682aa8fbf0b214276c0e7325

See more details on using hashes here.

Provenance

The following attestation bundles were made for arduck-0.0.5.tar.gz:

Publisher: release.yaml on x55xaa/arduck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file arduck-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: arduck-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 56.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for arduck-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 04bf719628efca690f10e75e4992ba8e9a9e8fecd75a30ec9d09c0ee77fbd804
MD5 f74a0270e7a8d2e7e0cc7fbb4829d8af
BLAKE2b-256 93b315d04f448132f26850a383680fbfb167459af8c30315c859e55d52d0d7f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for arduck-0.0.5-py3-none-any.whl:

Publisher: release.yaml on x55xaa/arduck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page