Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ispique/rubber-ducky-bad-usb
Make your own rubber ducky USB with VBScript and execute any commands you want!
https://github.com/ispique/rubber-ducky-bad-usb
badusb badusb-payloads hack hacking hacking-tool powershell powershell-script rubber-ducky rubber-ducky-script vbscript visual-basic-script
Last synced: about 2 months ago
JSON representation
Make your own rubber ducky USB with VBScript and execute any commands you want!
- Host: GitHub
- URL: https://github.com/ispique/rubber-ducky-bad-usb
- Owner: isPique
- License: mit
- Created: 2023-11-03T17:12:07.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-24T07:54:23.000Z (6 months ago)
- Last Synced: 2024-07-24T09:15:18.596Z (6 months ago)
- Topics: badusb, badusb-payloads, hack, hacking, hacking-tool, powershell, powershell-script, rubber-ducky, rubber-ducky-script, vbscript, visual-basic-script
- Language: PowerShell
- Homepage:
- Size: 8.63 MB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 💀 Rubber Ducky Bad USB 💀
**This script is designed to act like a Rubber Ducky using the [WshShell.SendKeys](https://ss64.com/vb/sendkeys.html) method from the Windows Script Host (WSH). You can add more commands to [root.ps1](https://github.com/isPique/Rubber-Ducky-Bad-USB/blob/main/root.ps1) file to gather any information you want.**
#
# What is Rubber Ducky?
* The Rubber Ducky is an HID (Human Interface Device), which are devices such as keyboards, mouses, and joysticks that interface with humans. When these devices are connected to a computer via USB, they are not blocked by the computer's firewall. In other words, they are considered trustworthy by the system and are not subject to control. Unlike other USB inputs, which are controlled by the computer, once the USB containing the Rubber Ducky payload is encoded, the computer recognizes it as an HID. Due to this lack of scrutiny, if the device contains malicious software, it can potentially harm or hack into your computer. Therefore, I recommend not connecting unknown USB devices to your computer.
# Read before you start
* The objective of this repository is to serve as an example, it has educational purposes, and in no case does it pretend to be perfect or fully functional.
* This script is for running a **regular USB** like **Rubber Ducky** with **USB-AutoRun**, not a real **Rubber Ducky USB** and is designed to collect **many system information** and **Wi-Fi Passwords** by running another script (root.ps1).
* The `-ExecutionPolicy Bypass` option allows the script to run bypassing the default execution policies. This gives the user more control when running the PowerShell script, potentially bypassing advanced security measures.
# Here is an overview of what the script does:
* It starts by querying the WMI (Windows Management Instrumentation) to identify removable USB drives and their associated logical disks.
* For each USB drive found, it checks if a "Data" directory exists. If not, it creates one.
* It then proceeds to collect various system information, such as **computer info, network information, BIOS, environment variables, network interfaces, network adapters, IP configuration, routes, DNS settings, TCP connections, UDP endpoints, running processes, services, installed hotfixes**, and **system event logs**.
* If a Wi-Fi interface is present, the script collects Wi-Fi profiles and their associated passwords.
# USAGE
* Place the `root.ps1` and `script.vbs` files on your USB drive.
* After that, set up the file named `USBAC-DEMO-ENG-SETUP.exe` to install USB-AutoRun.
* After installing it, open it up. You should see something like this:
![USB-AutoRun](https://github.com/isPique/Rubber-Ducky-Bad-USB/assets/139041426/897df7dc-1352-4465-803b-3aabecce4bee)* Click on the **Select Button** and select the `script.vbs` file on your USB.
* And then, click on the **Browse Button**. You should see something like this:
![Select Folder](https://github.com/isPique/Rubber-Ducky-Bad-USB/assets/139041426/42d80fcf-f8c1-4639-a9b0-1ce63432a1e3)
* Click on the **USB drive Button**, then click on the **OK Button**.
* You should see something like this:
![After Browse](https://github.com/isPique/Rubber-Ducky-Bad-USB/assets/139041426/5f4ddf17-8106-47b1-9fd3-a808e8aa4fbd)
* Click on the **Create Button**. It will create AutoRun folders. You should see something like this:
![Create AutoRun Folders](https://github.com/isPique/Rubber-Ducky-Bad-USB/assets/139041426/d92ca1d1-c16a-4af3-9b62-11cf55fe8d28)
* You can close the app now.
* After doing all these things, congratulations! You've just created a simple **Rubber Ducky USB**. Enjoy it!
* Unplug your USB from your computer and plug it back in.
![PowerShell](https://github.com/isPique/Rubber-Ducky-Bad-USB/assets/139041426/224eb470-21e9-4260-96e1-07fa4ea11cb8)
* See, it's working :>