making progress, moved some stuff around
This commit is contained in:
@@ -68,9 +68,9 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: "Comic-Code-Regular";
|
font-family: "Comic-Code-Regular";
|
||||||
src: url("/nmaprincesspi/font/Comic-Code-Regular.ttf"),
|
src: url("/nmaprincesspi/css/fonts/Comic-Code-Regular.ttf"),
|
||||||
url("/nmaprincesspi/font/Comic-Code-Regular.woff"),
|
url("/nmaprincesspi/css/fonts/Comic-Code-Regular.woff"),
|
||||||
url("/nmaprincesspi/font/Comic-Code-Regular.otf");
|
url("/nmaprincesspi/css/fonts/Comic-Code-Regular.otf");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* stylesheet print */
|
/* stylesheet print */
|
||||||
@@ -147,7 +147,7 @@
|
|||||||
{
|
{
|
||||||
body {
|
body {
|
||||||
font-family: "Comic-Code-Regular", "Comic Sans MS", "Comic Sans", sans-serif;
|
font-family: "Comic-Code-Regular", "Comic Sans MS", "Comic Sans", sans-serif;
|
||||||
background-image: url('/nmaprincesspi/img/princesspi-large-alpha-transparency-more-faded.png');
|
background-image: url('/nmaprincesspi/css/img/princesspi-large-alpha-transparency-more-faded.png');
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-color: #FFDDDD;
|
background-color: #FFDDDD;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -338,7 +338,7 @@
|
|||||||
|
|
||||||
<title>Princess Pi's Magical Nmap Scan Report! - Scanned at <xsl:value-of select="$start" /></title>
|
<title>Princess Pi's Magical Nmap Scan Report! - Scanned at <xsl:value-of select="$start" /></title>
|
||||||
|
|
||||||
<link rel="icon" type="image/x-icon" href="/nmaprincesspi/img/favicon.ico" />
|
<link rel="icon" type="image/x-icon" href="/nmaprincesspi/css/img/favicon.ico" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 15 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 590 KiB After Width: | Height: | Size: 590 KiB |
@@ -0,0 +1,132 @@
|
|||||||
|
/*
|
||||||
|
Princess Pi's Magical Standard Code!
|
||||||
|
|
||||||
|
colors:
|
||||||
|
pale pink background: #FFDDDD
|
||||||
|
slightly lighter pink background like on inputs #FFEEEE
|
||||||
|
dark purple like text: #800080
|
||||||
|
slightly darker than true pink like in input focus: #FFB4C0
|
||||||
|
true blue like on input focus and hover borders: #0000FF
|
||||||
|
*/
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Comic Code Regular';
|
||||||
|
src: url('fonts/ComicCodeRegular.otf');
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "Comic Code Regular", "Comic Sans MS", 'Courier New', Courier, monospace;
|
||||||
|
font-weight: bold;
|
||||||
|
color: #800080;
|
||||||
|
|
||||||
|
background-image: url('img/princesspi-large-alpha-transparency-more-faded.png');
|
||||||
|
background-color: #FFDDDD;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1.title {
|
||||||
|
color: #800080;
|
||||||
|
font-size: 3em;
|
||||||
|
}
|
||||||
|
|
||||||
|
img { border: 0; }
|
||||||
|
|
||||||
|
.hidden { display: none; }
|
||||||
|
|
||||||
|
input[type=text],textarea {
|
||||||
|
background-color: #FFEEEE;
|
||||||
|
border: 2px solid #800080;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=text]:focus,textarea:focus {
|
||||||
|
background-color: #FFB4C0;
|
||||||
|
border: 2px solid #0000FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
background-color: #FFEEEE;
|
||||||
|
border: 2px solid #800080;
|
||||||
|
}
|
||||||
|
|
||||||
|
select:focus {
|
||||||
|
background-color: #FFB4C0;
|
||||||
|
border: 2px solid #0000FF;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=button],input[type=file],input[type=submit],button {
|
||||||
|
border: 2px solid #800080;
|
||||||
|
background-color: #FFEEEE;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type=button]:hover,input[type=file]:hover,input[type=submit]:hover,button:hover {
|
||||||
|
background-color: #FFAAAA;
|
||||||
|
border: 2px solid #0000FF
|
||||||
|
}
|
||||||
|
|
||||||
|
.fakelink {
|
||||||
|
color: #B56B93;
|
||||||
|
text-decoration: underline;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fakelink:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*structures*/
|
||||||
|
#content {
|
||||||
|
width: 80%;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.row {
|
||||||
|
clear: both;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:link {
|
||||||
|
/*font-weight: bold;
|
||||||
|
font-size: 1.25em;*/
|
||||||
|
color: #B56B93;
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
list-style-image: url('img/plot-icon-10.png');
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
.bar {
|
||||||
|
width: 20%;
|
||||||
|
margin: 10px;
|
||||||
|
padding: 0;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.bar ul li a:link {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.25em;
|
||||||
|
color: #B56B93;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar ul li a:hover {
|
||||||
|
text-decoration: none;
|
||||||
|
letter-spacing: 1.35;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar ul li a.important {
|
||||||
|
font-size: 1.5em;
|
||||||
|
color: #F00;
|
||||||
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<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="icon" type="css/img/" href="css/img/favicon.ico">
|
||||||
|
<script src="js/princesspi-default-js.js"></script>
|
||||||
|
<title>Demo Page | Princess Pi's Magical Standard Code</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Demo Page~</h1>
|
||||||
|
<div>
|
||||||
|
<a href="#">real link</a>
|
||||||
|
<br>
|
||||||
|
<span class="fakelink">fakelink</span>
|
||||||
|
<br>
|
||||||
|
<textarea>(textarea)</textarea>
|
||||||
|
<br>
|
||||||
|
<input type="text" value="(text input)">
|
||||||
|
<br>
|
||||||
|
<input type="submit" value="go, baby, go (submit)">
|
||||||
|
<br>
|
||||||
|
<input type="button" value="go, baby, go (button)">
|
||||||
|
<br>
|
||||||
|
<button>go, baby, go (newbutton)</button>
|
||||||
|
<br>
|
||||||
|
<ul>
|
||||||
|
<li>unordered list</li>
|
||||||
|
<li>ul list</li>
|
||||||
|
<li>list element</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB |
@@ -0,0 +1,14 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<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="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>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Princess Pi's Magical Nmap Web Thingy!</h1>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
Princess Pi's Magical Standard Code!
|
||||||
|
*/
|
||||||
|
|
||||||
|
function getID(ID) {
|
||||||
|
return document.getElementById(ID);
|
||||||
|
}
|
||||||
|
|
||||||
|
function copyToClipboard(ID) {
|
||||||
|
let copyText = getID(ID);
|
||||||
|
copyText.select();
|
||||||
|
document.execCommand("copy");
|
||||||
|
}
|
||||||
|
|
||||||
|
function xhrSuccess(xhrRet) {
|
||||||
|
let xhrResponseText = xhrRet.target.responseText;
|
||||||
|
}
|
||||||
|
|
||||||
|
function xhr404(xhrRet) {
|
||||||
|
// console.log(xhrRet);
|
||||||
|
}
|
||||||
|
|
||||||
|
function xhrOther(xhrRet) {
|
||||||
|
// console.log(xhrRet.target);
|
||||||
|
}
|
||||||
|
|
||||||
|
function xhrLoadend(xhrRet) {
|
||||||
|
let xhrStatus = xhrRet.currentTarget.status;
|
||||||
|
|
||||||
|
switch(xhrStatus) {
|
||||||
|
case 404:
|
||||||
|
xhr404(xhrRet);
|
||||||
|
break;
|
||||||
|
case 200:
|
||||||
|
xhrSuccess(xhrRet);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
xhrOther(xhrRet);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function doXhr(xhrFilePath, xhrMethod='GET', xhrPostData=null) {
|
||||||
|
const xhr = new XMLHttpRequest();
|
||||||
|
xhr.addEventListener("loadend", xhrLoadend);
|
||||||
|
xhr.open(xhrMethod, xhrFilePath);
|
||||||
|
xhr.send();
|
||||||
|
}
|
||||||
|
|
||||||
|
function changeFavIcon(icoFile) {
|
||||||
|
let icoLink = document.querySelector("link[rel~='icon']");
|
||||||
|
|
||||||
|
if(icoLink) {
|
||||||
|
document.head.removeChild(icoLink);
|
||||||
|
}
|
||||||
|
|
||||||
|
icoLink = document.createElement('link');
|
||||||
|
icoLink.rel = 'icon';
|
||||||
|
document.head.appendChild(icoLink);
|
||||||
|
|
||||||
|
icoLink.href = icoFile;
|
||||||
|
}
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
scansPath="/var/www/html/nmaprincesspi/scans"
|
scansPath="/var/www/html/nmaprincesspi/scans"
|
||||||
fileName="nmap-$(date +%Y%m%d-%H%M%S).xml"
|
fileName="nmap-$(date +%Y%m%d-%H%M%S).xml"
|
||||||
filePath="$scansPath/$fileName"
|
filePath="$scansPath/$fileName"
|
||||||
webPath="http://10.0.0.51/nmap-scans/$fileName"
|
webPath="http://10.0.0.51/nmaprincesspi/scans/$fileName"
|
||||||
|
|
||||||
cmd="nmap -oX \"$filePath\" --stylesheet \"/nmaprincesspi/xsl/princesspi-nmap.xsl\" $*"
|
cmd="nmap -oX \"$filePath\" --stylesheet \"/nmaprincesspi/xsl/princesspi-nmap.xsl\" $*"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user