GithubHelp home page GithubHelp logo

ispique / rubber-ducky-bad-usb Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 2.0 8.84 MB

Make your own rubber ducky USB with VBScript and execute any commands you want!

License: MIT License

PowerShell 83.19% VBScript 16.81%
badusb badusb-payloads hack hacking hacking-tool powershell powershell-script rubber-ducky rubber-ducky-script vbscript visual-basic-script

rubber-ducky-bad-usb's Introduction

💀 Rubber Ducky Bad USB 💀

This script is designed to act like a Rubber Ducky using the WshShell.SendKeys method from the Windows Script Host (WSH). You can add more commands to 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

  • 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

  • Click on the USB drive Button, then click on the OK Button.

  • You should see something like this:

    After Browse

  • Click on the Create Button. It will create AutoRun folders. You should see something like this:

    Create AutoRun Folders

    • 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

    • See, it's working :>

rubber-ducky-bad-usb's People

Contributors

ispique avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rubber-ducky-bad-usb's Issues

bi sorum var

,bu auto run kodunu farklı .vbs dosyalarında yermi??, bide su senin windows security i kapatan kodda yermi yemi yemiyorsa o projeyi gelistire bilirmisin??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.