1747346072

This commit is contained in:
2025-05-15 15:54:32 -06:00
parent b76757554c
commit 70deb3f3d5
4 changed files with 9 additions and 3 deletions
+2 -2
View File
@@ -3,7 +3,8 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/princesspi-default-css.css"> <link rel="stylesheet" href="css/nmaprincesspi.css">
<script src="js/nmaprincesspi.js"></script>
<link rel="icon" type="css/img/" href="css/img/favicon.ico"> <link rel="icon" type="css/img/" href="css/img/favicon.ico">
<title>Princess Pi's Magical Nmap Web Thingy!</title> <title>Princess Pi's Magical Nmap Web Thingy!</title>
</head> </head>
@@ -15,6 +16,5 @@
<input type="button" onclick="runNmapScan()" value="Go, Baby, Go!"> <input type="button" onclick="runNmapScan()" value="Go, Baby, Go!">
<br> <br>
<span class="hidden" id="out"></span> <span class="hidden" id="out"></span>
<script src="js/princesspi-default-js.js"></script>
</body> </body>
</html> </html>
@@ -73,4 +73,10 @@ function runNmapScan() {
console.log(nmapcmd); console.log(nmapcmd);
let postData = 'nmapcmd='+encodeURIComponent(nmapcmd); let postData = 'nmapcmd='+encodeURIComponent(nmapcmd);
doXhr('run_scan.php', 'POST', postData); doXhr('run_scan.php', 'POST', postData);
}
function pollFile(filePath) {
var poll = setInterval(function() {
doXhr(filePath);
}, 1000);
} }
+1 -1
View File
@@ -8,7 +8,7 @@
} }
$file_name = date("Ymd-Hi-s") . "-" . rand(1000000,9999999) . ".xml"; $file_name = date("Ymd-Hi-s") . "-" . rand(1000000,9999999) . ".xml";
$run_cmd = "bash ./scripts/run_scan.sh nmap -oX scans/$file_name --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl $post_cmd"; $run_cmd = "bash scripts/run_scan.sh -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;