# androidmalware/android_hid

Use Android as Rubber Ducky against another Android device

Repository: https://github.com/androidmalware/android_hid
Canonical: https://ross.abutalabs.com/products/android_hid
Language: Shell
License Family: other
Last push: 2023-08-11T15:21:23+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1989, "days_push": 1118, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1631, forks 331 (observed 2026-08-28T04:05:14.074474+00:00)

## What it is
A set of shell scripts that turn a rooted Android device into a USB HID keyboard (Rubber Ducky style) to inject keystroke payloads into targeted Android devices or Windows PCs. It demonstrates BadUSB-style HID attacks using Android's USB gadget kernel support, e.g. via NetHunter.

## Use cases
- use android as rubber ducky to attack another android phone
- perform hid keystroke injection attack from android to windows pc
- demo badusb attack using a smartphone and otg cable
- brute-force or bypass android lockscreen via fake keyboard input
- learn how hid attacks work for security awareness training

## When to choose
- you have a rooted Android device with HID kernel support (e.g. NetHunter) and want a free Rubber Ducky alternative
- you want a simple educational PoC of HID attacks against Android or Windows
- you need scriptable keystroke injection payloads from a phone

## When to avoid
- you need a polished, maintained tool with a license and active support
- your Android device is not rooted or lacks USB HID gadget kernel support
- you need a hardware Rubber Ducky with reliable timing and payload formats

## Facets
- artifact type: cli-tool
- maturity: maintenance
- function: security, penetration-testing, cli
- domain: security, penetration-testing, android-tools
- platform: cli
- tags: hid-attack, rubber-ducky, usb-gadget, badusb, pentesting, shell-scripts, nethunter, android, linux

## Member repositories
- androidmalware/android_hid (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:14.074474+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:47:49.810359+00:00, confidence not recorded.
  - readme: https://github.com/androidmalware/android_hid (fetched 2026-08-28T04:05:14.074474+00:00, sha 656f438fe86a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
