1747346072
This commit is contained in:
@@ -3,7 +3,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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">
|
||||
<title>Princess Pi's Magical Nmap Web Thingy!</title>
|
||||
</head>
|
||||
@@ -15,6 +16,5 @@
|
||||
<input type="button" onclick="runNmapScan()" value="Go, Baby, Go!">
|
||||
<br>
|
||||
<span class="hidden" id="out"></span>
|
||||
<script src="js/princesspi-default-js.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -73,4 +73,10 @@ function runNmapScan() {
|
||||
console.log(nmapcmd);
|
||||
let postData = 'nmapcmd='+encodeURIComponent(nmapcmd);
|
||||
doXhr('run_scan.php', 'POST', postData);
|
||||
}
|
||||
|
||||
function pollFile(filePath) {
|
||||
var poll = setInterval(function() {
|
||||
doXhr(filePath);
|
||||
}, 1000);
|
||||
}
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
}
|
||||
|
||||
$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";
|
||||
|
||||
echo $web_name;
|
||||
|
||||
Reference in New Issue
Block a user