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

Improved usb extractor pull request #394

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

Conversation

doc-sewell-alpine
Copy link

I've added a new payload called improved-usb-extractor, based off simple-usb-extractor. It allows for improved logging, ignoring directories, and re-creating source directory structure.

# For improved stealth, if target supports Visual Basic Script, change the
# launch line below to launch z.cmd instead of x.cmd.
# Documentation line from original project:
# Executes z.cmd from the switch position's folder, thus launching x.cmd silently using i.vbs
Copy link
Member

Choose a reason for hiding this comment

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

I would add short delay before running any keystroke injection so the the target machine has the time to identify and accept keystrokes from the bash bunny.

simply add

QUACK DELAY 1000

before line 10

# launch line below to launch z.cmd instead of x.cmd.
# Documentation line from original project:
# Executes z.cmd from the switch position's folder, thus launching x.cmd silently using i.vbs
RUN WIN powershell ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\x.cmd')"
Copy link
Member

Choose a reason for hiding this comment

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

I would recommend using a variable assignment for the drive label as not everyone's configuration will have the default BashBunny drive label. This makes user configuration much easier.

You can do this by adding it to the top of your payload. For example with line:

DRIVE_LABEL="BashBunny"
RUN WIN powershell ".((gwmi win32_volume -f 'label=''$DRIVE_LABEL''').Name+'payloads\\$SWITCH_POSITION\x.cmd')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants