some random shit
This commit is contained in:
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
sudo chown -R www-data:www-data . 2>>error.log
|
||||||
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
rm -f error.log 2>>./error.log
|
||||||
|
rm -f scans/* 2>>./error.log
|
||||||
+2
-1
@@ -8,10 +8,11 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
$file_name = date("Ymd-Hi-s") . ".xml";
|
$file_name = date("Ymd-Hi-s") . ".xml";
|
||||||
$run_cmd = "nmap -oX scans/$file_name --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl $post_cmd &";
|
$run_cmd = "bash ./run_scan.sh nmap -oX scans/$file_name --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl $post_cmd";
|
||||||
$web_name = "/nmaprincesspi/scans/$file_name";
|
$web_name = "/nmaprincesspi/scans/$file_name";
|
||||||
|
|
||||||
echo $web_name;
|
echo $web_name;
|
||||||
|
|
||||||
$exec = shell_exec($run_cmd);
|
$exec = shell_exec($run_cmd);
|
||||||
|
echo $exec;
|
||||||
?>
|
?>
|
||||||
Executable
+2
@@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
eval "$* 2>>./error.log 1>/dev/null&"
|
||||||
Reference in New Issue
Block a user