diff --git a/font/Comic-Code-Regular.otf b/css/fonts/Comic-Code-Regular.otf similarity index 100% rename from font/Comic-Code-Regular.otf rename to css/fonts/Comic-Code-Regular.otf diff --git a/font/Comic-Code-Regular.ttf b/css/fonts/Comic-Code-Regular.ttf similarity index 100% rename from font/Comic-Code-Regular.ttf rename to css/fonts/Comic-Code-Regular.ttf diff --git a/font/Comic-Code-Regular.woff b/css/fonts/Comic-Code-Regular.woff similarity index 100% rename from font/Comic-Code-Regular.woff rename to css/fonts/Comic-Code-Regular.woff diff --git a/xsl/princesspi-nmap.xsl b/css/fonts/princesspi-nmap.xsl similarity index 98% rename from xsl/princesspi-nmap.xsl rename to css/fonts/princesspi-nmap.xsl index f6d7bf9..6ba440f 100644 --- a/xsl/princesspi-nmap.xsl +++ b/css/fonts/princesspi-nmap.xsl @@ -68,9 +68,9 @@ @font-face { font-family: "Comic-Code-Regular"; - src: url("/nmaprincesspi/font/Comic-Code-Regular.ttf"), - url("/nmaprincesspi/font/Comic-Code-Regular.woff"), - url("/nmaprincesspi/font/Comic-Code-Regular.otf"); + src: url("/nmaprincesspi/css/fonts/Comic-Code-Regular.ttf"), + url("/nmaprincesspi/css/fonts/Comic-Code-Regular.woff"), + url("/nmaprincesspi/css/fonts/Comic-Code-Regular.otf"); } /* stylesheet print */ @@ -147,7 +147,7 @@ { body { 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-color: #FFDDDD; margin: 0; @@ -338,7 +338,7 @@ Princess Pi's Magical Nmap Scan Report! - Scanned at <xsl:value-of select="$start" /> - + + Demo Page | Princess Pi's Magical Standard Code + + +

Demo Page~

+
+ real link +
+ fakelink +
+ +
+ +
+ +
+ +
+ +
+ +
+ + \ No newline at end of file diff --git a/img/favicon.ico b/img/favicon.ico deleted file mode 100644 index f99d89c..0000000 Binary files a/img/favicon.ico and /dev/null differ diff --git a/index.php b/index.php new file mode 100644 index 0000000..1598507 --- /dev/null +++ b/index.php @@ -0,0 +1,14 @@ + + + + + + + + + Princess Pi's Magical Nmap Web Thingy! + + +

Princess Pi's Magical Nmap Web Thingy!

+ + \ No newline at end of file diff --git a/js/princesspi-default-js.js b/js/princesspi-default-js.js new file mode 100644 index 0000000..4a266bb --- /dev/null +++ b/js/princesspi-default-js.js @@ -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; +} \ No newline at end of file diff --git a/nmap-script.sh b/nmap-script.sh index 7ba2df2..8d37a90 100755 --- a/nmap-script.sh +++ b/nmap-script.sh @@ -3,7 +3,7 @@ scansPath="/var/www/html/nmaprincesspi/scans" fileName="nmap-$(date +%Y%m%d-%H%M%S).xml" 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\" $*"