Remove hard-coded switch directory in place of bunny_helper variable

pull/347/head
Mathew Fleisch 2017-03-25 11:39:12 -07:00
parent 0635da0933
commit 84f07261ba
1 changed files with 3 additions and 1 deletions

View File

@ -16,8 +16,10 @@
LED R G B
ATTACKMODE RNDIS_ETHERNET
source bunny_helpers.sh
log_file="/var/log/BrowserBunny.log"
payload_root="/root/udisk/payloads/${SWITCH_POSITION}"
echo " --------- BrowserBunny [started] -----------" >> $log_file
@ -34,5 +36,5 @@ LED R G
LED G
echo "Starting php server..." >> $log_file;
cd /root/udisk/payloads/switch1
cd $payload_root
php -S 172.16.64.1:80 &>> $log_file