From ea153760cefd52374ee88a050cc5fdb995533d1d Mon Sep 17 00:00:00 2001 From: hPrnicessPi3 Date: Thu, 15 May 2025 13:19:06 -0600 Subject: [PATCH] made the nmap script work --- howto.txt | 2 +- nmap-script.sh | 13 +++++++++++++ xsl/princesspi-nmap.xsl | 30 +++++++++++++++--------------- 3 files changed, 29 insertions(+), 16 deletions(-) create mode 100755 nmap-script.sh diff --git a/howto.txt b/howto.txt index b9d6294..8c42150 100644 --- a/howto.txt +++ b/howto.txt @@ -1 +1 @@ --oX --stylesheet https://h.acker.is/nmaprincesspi/princesspi-nmap.xsl \ No newline at end of file +-oX --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl \ No newline at end of file diff --git a/nmap-script.sh b/nmap-script.sh new file mode 100755 index 0000000..47cadae --- /dev/null +++ b/nmap-script.sh @@ -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" \ No newline at end of file diff --git a/xsl/princesspi-nmap.xsl b/xsl/princesspi-nmap.xsl index 020d2a8..5b8b2a3 100644 --- a/xsl/princesspi-nmap.xsl +++ b/xsl/princesspi-nmap.xsl @@ -68,9 +68,9 @@ @font-face { font-family: "Comic-Code-Regular"; - src: url("https://h.acker.is/nmaprincesspi/font/Comic-Code-Regular.ttf"), - url("https://h.acker.is/nmaprincesspi/font/Comic-Code-Regular.woff"), - url("https://h.acker.is/nmaprincesspi/font/Comic-Code-Regular.otf"); + src: url("/nmaprincesspi/font/Comic-Code-Regular.ttf"), + url("/nmaprincesspi/font/Comic-Code-Regular.woff"), + url("/nmaprincesspi/font/Comic-Code-Regular.otf"); } /* stylesheet print */ @@ -81,7 +81,7 @@ } body { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; background-color: #FFDDDD; } @@ -146,8 +146,8 @@ @media screen { body { - font-family: "Comic-Code-Regular"; - background-image: url('https://h.acker.is/nmaprincesspi/img/princesspi-large-alpha-transparency-more-faded.png'); + 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-repeat: no-repeat; background-color: #FFDDDD; margin: 0; @@ -162,7 +162,7 @@ } h1 { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; font-weight: bold; font-size: 14pt; color: #800080; @@ -175,7 +175,7 @@ } h2 { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; font-weight:bold; font-size: 11pt; color: #800080; @@ -199,7 +199,7 @@ } h3 { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; font-weight:bold; font-size: 10pt; color: #800080; @@ -209,7 +209,7 @@ } p { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; font-size: 8pt; color: #800080; background-color: #FFB4C0; @@ -218,14 +218,14 @@ } p i { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; font-size: 8pt; color: #800080; background-color: #FFEEEE; } ul { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; font-size: 8pt; color: #800080; background-color: #FFB4C0; @@ -234,7 +234,7 @@ } a { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; text-decoration: none; font-size: 8pt; font-weight: bold; @@ -243,7 +243,7 @@ } li a { - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; text-decoration: none; font-size: 10pt; font-weight: bold; @@ -269,7 +269,7 @@ tr { vertical-align:top; - font-family: "Comic-Code-Regular"; + font-family: "Comic-Code-Regular" "Comic Sans MS", "Comic Sans", sans-serif; font-size: 8pt; color: #800080; background-color: #FFB4C0;