{"id":19041094,"url":"https://github.com/thoughtfuldev/pyduckgen","last_synced_at":"2025-04-23T21:27:06.112Z","repository":{"id":65656978,"uuid":"88276637","full_name":"ThoughtfulDev/PyDuckGen","owner":"ThoughtfulDev","description":"Get your USB Rubber Ducky up and running faster","archived":false,"fork":false,"pushed_at":"2017-11-18T19:16:19.000Z","size":60666,"stargazers_count":42,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T06:51:10.382Z","etag":null,"topics":["hak5","payload-generation","python","usb-rubber-ducky"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThoughtfulDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-14T14:56:28.000Z","updated_at":"2024-05-05T23:39:23.000Z","dependencies_parsed_at":"2023-02-02T19:32:25.725Z","dependency_job_id":null,"html_url":"https://github.com/ThoughtfulDev/PyDuckGen","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThoughtfulDev%2FPyDuckGen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThoughtfulDev%2FPyDuckGen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThoughtfulDev%2FPyDuckGen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThoughtfulDev%2FPyDuckGen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThoughtfulDev","download_url":"https://codeload.github.com/ThoughtfulDev/PyDuckGen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250516493,"owners_count":21443632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hak5","payload-generation","python","usb-rubber-ducky"],"created_at":"2024-11-08T22:27:13.860Z","updated_at":"2025-04-23T21:27:06.077Z","avatar_url":"https://github.com/ThoughtfulDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyDuckGen\r\n[![GitHub release](https://img.shields.io/github/release/thoughtfuldev/pyduckgen.svg)]()\r\n[![GitHub stars](https://img.shields.io/github/stars/thoughtfuldev/pyduckgen.svg?style=social\u0026label=Star\u0026style=flat-square)]()\r\n[![GitHub commits](https://img.shields.io/github/commits-since/thoughtfuldev/pyduckgen/1.1.0.svg)]()\r\n\r\n- [Introduction](#introduction)\r\n- [Usage](#usage)\r\n  - [Installation](#installation)\r\n  - [Commands](#commands)\r\n- [Adding new payloads](#adding-new-payloads)\r\n\r\n![PyDuckGen Startscreen](http://i.epvpimg.com/DeQwcab.png)\r\n---\r\n## Introduction\r\nPyDuck is a Python Script which helps you to get your once written USB Rubber Ducky Payloads onto your Duck's SDCard quickly. You can even change variable components by using a simple `set \u003cattribute\u003e \u003cval\u003e` command.\r\nAll of this is made easy with a Metasploit like interface.\r\nSimply choose your payload with `\u003cpayload\u003e`, configure it and there you go :)\r\n\r\n## Usage\r\n\r\n**Tested with Python 3.5.2**\r\n\r\n### Installation\r\n1. Download the [latest release](https://github.com/ThoughtfulDev/PyDuckGen/releases).\r\n2. Run.\r\n3. ???\r\n4. Profit\r\n\r\n**OR (if you want the Dev Version)**\r\n0. Need Python 3.5.2 or higher...duhhh\r\n1. Clone the Repo:\r\n`git clone https://github.com/ThoughtfulDev/PyDuckGen.git`\r\n2. Install dependencies: `cd PyDuckGen \u0026\u0026 pip install -r requirements.txt`\r\n3. Start: `python PyDuckGen.py`\r\n4. Enjoy\r\n\r\n### Commands\r\nYou can get a list of all available commands by typing `help` at any time.\r\n\r\n![Normal Commands](http://i.epvpimg.com/8MqGaab.png)\r\n\r\n![Payload Commands](http://i.epvpimg.com/uxCOdab.png)\r\n\r\n#### Example Payload Generation\r\n```\r\npyd\u003e hello_world\r\npyd (hello_world)\u003e attributes\r\n...\r\npyd (hello_world)\u003e set language de\r\npyd (hello_world)\u003e set sdcard_mount H:\\\r\npyd (hello_world)\u003e set text Hello Github \u003c3\r\npyd (hello_world)\u003e generate\r\n```\r\nYou SDCard mounted on H:\\ should now have the right inject.bin on its USB Stick ready to go :)\r\n(It should open notepad and type 'Hello Github \u003c3')\r\n\r\nHere is another demontration.\r\n```\r\npyd\u003e mimikatz_lazagne_twinduck\r\npyd (mimikatz_lazagne_twinduck)\u003e attributes\r\n...\r\npyd (mimikatz_lazagne_twinduck)\u003e set uac_bypass_key j\r\npyd (mimikatz_lazagne_twinduck)\u003e set language de\r\npyd (mimikatz_lazagne_twinduck)\u003e gen\r\n```\r\n\r\nAs you can see if the Payload bypasses UAC you can set the key for bypassing e.g for US its ALT + y for Germany it is ALT + j.\r\n\r\n## Adding new payloads\r\nEach payload or module has its own folder in 'modules/'. Every module needs a module.json which is kind of a configuration file about its name, description, needed folders on the ducky, needed files and replacable attributes. Have a look at the existing modules and you should get the hang of it... at least i hope so...\r\n\r\nIf you want to have your Payload added feel free to make a pull request.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtfuldev%2Fpyduckgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtfuldev%2Fpyduckgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtfuldev%2Fpyduckgen/lists"}