made the nmap script work

This commit is contained in:
2025-05-15 13:19:06 -06:00
parent 167d3b2b55
commit ea153760ce
3 changed files with 29 additions and 16 deletions
+1 -1
View File
@@ -1 +1 @@
-oX <filename> --stylesheet https://h.acker.is/nmaprincesspi/princesspi-nmap.xsl -oX <filename> --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
scansPath="/var/www/html/nmap-scans"
fileName="nmap-$(date +%Y%m%d-%H%M%S).xml"
filePath="$scansPath/$fileName"
webPath="http://10.0.0.51/nmap-scans/$fileName"
cmd="nmap -oX \"$filePath\" --stylesheet \"/nmaprincesspi/xsl/princesspi-nmap.xsl\" $*"
echo -e "\nRunning: $cmd"
echo -e "Report Saving to: $webPath\n\n"
eval "$cmd"
echo -e "Done!\n\nReport Visible at $webPath\n\n"
+15 -15
View File
@@ -68,9 +68,9 @@
@font-face { @font-face {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular";
src: url("https://h.acker.is/nmaprincesspi/font/Comic-Code-Regular.ttf"), src: url("/nmaprincesspi/font/Comic-Code-Regular.ttf"),
url("https://h.acker.is/nmaprincesspi/font/Comic-Code-Regular.woff"), url("/nmaprincesspi/font/Comic-Code-Regular.woff"),
url("https://h.acker.is/nmaprincesspi/font/Comic-Code-Regular.otf"); url("/nmaprincesspi/font/Comic-Code-Regular.otf");
} }
/* stylesheet print */ /* stylesheet print */
@@ -81,7 +81,7 @@
} }
body { body {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
background-color: #FFDDDD; background-color: #FFDDDD;
} }
@@ -146,8 +146,8 @@
@media screen @media screen
{ {
body { body {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
background-image: url('https://h.acker.is/nmaprincesspi/img/princesspi-large-alpha-transparency-more-faded.png'); background-image: url('/nmaprincesspi/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;
@@ -162,7 +162,7 @@
} }
h1 { h1 {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
font-weight: bold; font-weight: bold;
font-size: 14pt; font-size: 14pt;
color: #800080; color: #800080;
@@ -175,7 +175,7 @@
} }
h2 { h2 {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
font-weight:bold; font-weight:bold;
font-size: 11pt; font-size: 11pt;
color: #800080; color: #800080;
@@ -199,7 +199,7 @@
} }
h3 { h3 {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
font-weight:bold; font-weight:bold;
font-size: 10pt; font-size: 10pt;
color: #800080; color: #800080;
@@ -209,7 +209,7 @@
} }
p { p {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
font-size: 8pt; font-size: 8pt;
color: #800080; color: #800080;
background-color: #FFB4C0; background-color: #FFB4C0;
@@ -218,14 +218,14 @@
} }
p i { p i {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
font-size: 8pt; font-size: 8pt;
color: #800080; color: #800080;
background-color: #FFEEEE; background-color: #FFEEEE;
} }
ul { ul {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
font-size: 8pt; font-size: 8pt;
color: #800080; color: #800080;
background-color: #FFB4C0; background-color: #FFB4C0;
@@ -234,7 +234,7 @@
} }
a { a {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
text-decoration: none; text-decoration: none;
font-size: 8pt; font-size: 8pt;
font-weight: bold; font-weight: bold;
@@ -243,7 +243,7 @@
} }
li a { li a {
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
text-decoration: none; text-decoration: none;
font-size: 10pt; font-size: 10pt;
font-weight: bold; font-weight: bold;
@@ -269,7 +269,7 @@
tr { tr {
vertical-align:top; vertical-align:top;
font-family: "Comic-Code-Regular"; font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif;
font-size: 8pt; font-size: 8pt;
color: #800080; color: #800080;
background-color: #FFB4C0; background-color: #FFB4C0;