Moved log file location and changed how the /dev/nandf mount is detected.

This commit is contained in:
Mathew Fleisch 2017-03-16 11:45:19 -07:00
parent c9f037ee9d
commit 9dab90d52a

View File

@ -22,11 +22,12 @@ ATTACKMODE RNDIS_ETHERNET
git_repo="https://github.com/hak5/bashbunny-payloads.git"
git_branch="master"
payloads_dir="/root/udisk"
log_file="/root/udisk/git.log"
log_file="/var/log/git.log"
echo " --------- Git Bunny Git [started] -----------" >> $log_file
[[ ! -d "$payloads_dir/payloads" ]] && { LED R 200; echo "Could not mount filesystem" >> $log_file; exit 1; }
# Sanity check on mounted drive
[[ ! `mount | grep "nandf"` ]] && { LED R 200; echo "Could not mount filesystem" >> $log_file; exit 1; }
# Test for internet connection
wget -q --tries=15 --timeout=5 --spider http://example.com