Fixed a bug and updated the read-me doc.

This commit is contained in:
Mathew Fleisch 2017-03-15 22:19:43 -07:00
parent e03f82fa93
commit 00a365a706
2 changed files with 5 additions and 6 deletions

View File

@ -5,7 +5,7 @@ Version: 1.0
## Description
Clones the bashbunny-payloads repository and also will update an existing repository.
Clones the bashbunny-payloads repository and also will update an existing repository. Use this payload to get all the other payloads!
## Configuration
@ -26,7 +26,6 @@ Target must be sharing internet.
| ---------------- | ------------------------------------- |
| White | Ready (to share internet connection) |
| Red | Failed (no internet) |
| Red (blinking) | Failed (could not mount filesystem) |
| Amber | Running |
| Purple | Cleaning Up |
| Green (blinking) | Finished (git pull) |

View File

@ -18,15 +18,15 @@ LED R G B
ATTACKMODE RNDIS_ETHERNET
#ATTACKMODE ECM_ETHERNET
source bunny_helpers.sh
# Set your desired repo url and branch if you're not looking to update from mainline
git_repo="https://github.com/hak5/bashbunny-payloads.git"
git_branch="master"
payloads_dir="/root/udisk"
log_file="/root/udisk/payloads/$SWITCH_POSITION/git.log"
log_file="/root/udisk/git.log"
echo "Git Bunny Git" > $log_file
echo "Git Bunny Git" >> $log_file
[[ ! -d "$payloads_dir/payloads" ]] && { LED R; echo "Could not mount filesystem" >> $log_file; exit 1; }
# Test for internet connection
wget -q --tries=15 --timeout=5 --spider http://example.com