mirror of
https://github.com/hak5/bashbunny-payloads.git
synced 2025-10-29 16:58:25 +00:00
Added Read-me doc and made some slight bug fixes
This commit is contained in:
parent
ef456ab581
commit
0635da0933
@ -34,7 +34,7 @@ if($_POST) {
|
||||
echo json_encode(array('success'=>false,'payload'=>$payload,'debug'=>$cmd."\n".implode("\n", $rmout)));
|
||||
} else {
|
||||
$out = [];
|
||||
$cmd = 'cp -r '.$BrowserBunny->root.'/library/'.$payload.'/* '.$BrowserBunny->root.'/'.$target_dir.'/.';
|
||||
$cmd = 'cp -r '.$BrowserBunny->root.'/library/'.$payload.'/* '.$BrowserBunny->root.'/'.$target_dir.'/. && sync';
|
||||
exec($cmd, $out);
|
||||
if(count($out)) {
|
||||
echo json_encode(array('success'=>false,'payload'=>$payload,'debug'=>$cmd."\n".implode("\n", $out)));
|
||||
|
||||
@ -29,7 +29,7 @@ wget -q --tries=15 --timeout=5 --spider http://example.com
|
||||
[[ "$?" -ne 0 ]] && { LED R; echo "Could not connect to the internet" >> $log_file; exit 1; }
|
||||
|
||||
LED R G
|
||||
[[ ! `which php` ]] && { LED R G 200; echo "Php not installed... install it!" >> $log_file; apt-get install -y php5-cli &>> $log_file; }
|
||||
[[ ! `which php` ]] && { LED R G 200; echo "Php not installed..." >> $log_file; apt-get install -y php5-cli &>> $log_file; }
|
||||
|
||||
|
||||
LED G
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user