1747344339
This commit is contained in:
@@ -10,12 +10,14 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'Comic Code Regular';
|
font-family: "Comic-Code-Regular";
|
||||||
src: url('fonts/ComicCodeRegular.otf');
|
src: url("fonts/Comic-Code-Regular.ttf"),
|
||||||
|
url("fonts/Comic-Code-Regular.woff"),
|
||||||
|
url("fonts/Comic-Code-Regular.otf");
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "Comic Code Regular", "Comic Sans MS", 'Courier New', Courier, monospace;
|
font-family: "Comic-Code-Regular", "Comic Sans MS", "Comic Sans", sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
color: #800080;
|
color: #800080;
|
||||||
|
|
||||||
|
|||||||
@@ -5,16 +5,16 @@
|
|||||||
<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/princesspi-default-css.css">
|
||||||
<link rel="icon" type="css/img/" href="css/img/favicon.ico">
|
<link rel="icon" type="css/img/" href="css/img/favicon.ico">
|
||||||
<script src="js/princesspi-default-js.js"></script>
|
|
||||||
<title>Princess Pi's Magical Nmap Web Thingy!</title>
|
<title>Princess Pi's Magical Nmap Web Thingy!</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Princess Pi's Magical Nmap Web Thingy!</h1>
|
<h1>Princess Pi's Magical Nmap Web Thingy!</h1>
|
||||||
<form action="run_scan.php" method="post">
|
|
||||||
<label for="nmapcmd">nmap command</label>
|
<label for="nmapcmd">nmap command</label>
|
||||||
<br>
|
<br>
|
||||||
<input type="text" name="nmapcmd">
|
<input type="text" id="nmapcmd" name="nmapcmd">
|
||||||
<input type="submit" value="Go, Baby, Go!">
|
<input type="button" onclick="runNmapScan()" value="Go, Baby, Go!">
|
||||||
</form>
|
<br>
|
||||||
|
<span class="hidden" id="out"></span>
|
||||||
|
<script src="js/princesspi-default-js.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -14,6 +14,8 @@ function copyToClipboard(ID) {
|
|||||||
|
|
||||||
function xhrSuccess(xhrRet) {
|
function xhrSuccess(xhrRet) {
|
||||||
let xhrResponseText = xhrRet.target.responseText;
|
let xhrResponseText = xhrRet.target.responseText;
|
||||||
|
getID('out').innerHTML = '<a href="'+xhrResponseText+'">Scan Report Here ('+xhrResponseText+')</a>';
|
||||||
|
getID('out').style.display = "inline";
|
||||||
}
|
}
|
||||||
|
|
||||||
function xhr404(xhrRet) {
|
function xhr404(xhrRet) {
|
||||||
@@ -43,7 +45,13 @@ function doXhr(xhrFilePath, xhrMethod='GET', xhrPostData=null) {
|
|||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.addEventListener("loadend", xhrLoadend);
|
xhr.addEventListener("loadend", xhrLoadend);
|
||||||
xhr.open(xhrMethod, xhrFilePath);
|
xhr.open(xhrMethod, xhrFilePath);
|
||||||
xhr.send();
|
|
||||||
|
if(xhrMethod == 'POST') {
|
||||||
|
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||||
|
xhr.send(xhrPostData);
|
||||||
|
} else {
|
||||||
|
xhr.send();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function changeFavIcon(icoFile) {
|
function changeFavIcon(icoFile) {
|
||||||
@@ -59,3 +67,10 @@ function changeFavIcon(icoFile) {
|
|||||||
|
|
||||||
icoLink.href = icoFile;
|
icoLink.href = icoFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function runNmapScan() {
|
||||||
|
let nmapcmd = getID('nmapcmd').value;
|
||||||
|
console.log(nmapcmd);
|
||||||
|
let postData = 'nmapcmd='+encodeURIComponent(nmapcmd);
|
||||||
|
doXhr('run_scan.php', 'POST', postData);
|
||||||
|
}
|
||||||
@@ -14,5 +14,4 @@
|
|||||||
echo $web_name;
|
echo $web_name;
|
||||||
|
|
||||||
$exec = shell_exec($run_cmd);
|
$exec = shell_exec($run_cmd);
|
||||||
echo $exec;
|
|
||||||
?>
|
?>
|
||||||
@@ -269,7 +269,7 @@
|
|||||||
|
|
||||||
tr {
|
tr {
|
||||||
vertical-align:top;
|
vertical-align:top;
|
||||||
font-family: "Comic-Code-Regular","Comic Sans MS", "Comic Sans", sans-serif;
|
font-family: "Comic-Code-Regular", "Comic Sans MS", "Comic Sans", sans-serif;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
color: #800080;
|
color: #800080;
|
||||||
background-color: #FFB4C0;
|
background-color: #FFB4C0;
|
||||||
|
|||||||
Reference in New Issue
Block a user