some random shit

This commit is contained in:
2025-05-15 14:58:52 -06:00
parent 3873e9cb74
commit 3133a1111f
5 changed files with 9 additions and 1 deletions
View File
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
sudo chown -R www-data:www-data . 2>>error.log
Executable
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
rm -f error.log 2>>./error.log
rm -f scans/* 2>>./error.log
+2 -1
View File
@@ -8,10 +8,11 @@
}
$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";
echo $web_name;
$exec = shell_exec($run_cmd);
echo $exec;
?>
Executable
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
eval "$* 2>>./error.log 1>/dev/null&"