This commit is contained in:
2025-05-15 19:14:32 -06:00
parent 5099bc7b18
commit 984d5df7c7
7 changed files with 32 additions and 14 deletions
+4 -3
View File
@@ -107,7 +107,7 @@ function xhrRunNmapScan(xhrRet) {
getID('link').innerHTML = '<a href="'+xhrJson.webName+'">Scan Report ('+xhrJson.webName+')</a>';
getID('link').style.display = "inline";
getID('progress').innerHTML = '';
getID('progressbox').innerHTML = '';
getID('progress').style.display = 'none';
pollFile(xhrJson.runningLog);
@@ -115,8 +115,8 @@ function xhrRunNmapScan(xhrRet) {
function xhrPollFile(xhrRet) {
let xhrResponseText = xhrRet.target.responseText;
getID('progress').innerHTML = xhrResponseText;
getID('progress').style.display = "block";
getID('progressbox').innerHTML = xhrResponseText;
}
function pollFile(runningLog) {
@@ -127,7 +127,8 @@ function pollFile(runningLog) {
function runNmapScan() {
let nmapcmd = getID('nmapcmd').value;
let postData = 'nmapcmd='+encodeURIComponent(nmapcmd);
let nonce = getID('nonce').value;
let postData = 'nmapcmd='+encodeURIComponent(nmapcmd)+'&nonce='+nonce;
doXhr('run_scan.php', xhrRunNmapScan, 'POST', postData);
}