This commit is contained in:
2025-05-15 15:44:40 -06:00
parent 06377571c8
commit b76757554c
11 changed files with 23 additions and 13 deletions
+2
View File
@@ -0,0 +1,2 @@
v0.1-dev
initial working state
+1
View File
@@ -0,0 +1 @@
v0.1-dev
-2
View File
@@ -1,2 +0,0 @@
#!/bin/bash
sudo chown -R www-data:www-data . 2>>error.log
-3
View File
@@ -1,3 +0,0 @@
#!/bin/bash
rm -f error.log 2>>./error.log
rm -f scans/* 2>>./error.log
+2 -2
View File
@@ -7,8 +7,8 @@
$post_cmd = substr($_POST['nmapcmd'], 5); $post_cmd = substr($_POST['nmapcmd'], 5);
} }
$file_name = date("Ymd-Hi-s") . ".xml"; $file_name = date("Ymd-Hi-s") . "-" . rand(1000000,9999999) . ".xml";
$run_cmd = "bash ./run_scan.sh nmap -oX scans/$file_name --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl $post_cmd"; $run_cmd = "bash ./scripts/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;
-2
View File
@@ -1,2 +0,0 @@
#!/bin/bash
eval "$* 2>>./error.log 1>/dev/null&"
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
sudo chown -R www-data:www-data .. 2>>../error.log
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
rm -f ../error.log 2>>./error.log
rm -f ../scans/* 2>>./error.log
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
eval "$* 2>>../error.log 1>/dev/null&"
+11 -4
View File
@@ -1,8 +1,15 @@
x xhr->run_scan.php x xhr->run_scan.php
move and edit scripts x add random number to file to prevent enumeration
x move and edit scripts
status/notify when done status/notify when done
polling? polling xml file?
error handling
nmap fail
php script fail
input validation fail
containerize
scans listing scans listing
work on scans filename? c work on scans filename?
fix perms fix perms
auth system auth system
input/output validation