From 603a0b2ba697c04830f2eff3a3644ca38c15fd49 Mon Sep 17 00:00:00 2001 From: hPrnicessPi3 Date: Thu, 15 May 2025 13:52:21 -0600 Subject: [PATCH] uopdoots and pretties and added README and scans dir and gitignore --- .gitignore | 4 ++++ README.md | 7 +++++++ howto.txt | 1 - nmap-script.sh | 4 ++-- 4 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .gitignore create mode 100644 README.md delete mode 100644 howto.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7c6998e --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +scans +scratch* +*.bak* +*.old* diff --git a/README.md b/README.md new file mode 100644 index 0000000..cb88fed --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# silly lil nmap thing + +add alias to .zshrc or .basrc + `alias nmap="/var/www/html/nmaprincesspi/nmap-script.sh"` + +manuual + `nmap -oX /var/www/html/nmaprincesspi/scans/FILENMAME.xml --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl` \ No newline at end of file diff --git a/howto.txt b/howto.txt deleted file mode 100644 index 8c42150..0000000 --- a/howto.txt +++ /dev/null @@ -1 +0,0 @@ --oX --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl \ No newline at end of file diff --git a/nmap-script.sh b/nmap-script.sh index 6d9fccf..7ba2df2 100755 --- a/nmap-script.sh +++ b/nmap-script.sh @@ -1,6 +1,6 @@ #!/bin/bash -# alias nmap="/var/www/html/nmaprincesspi" -scansPath="/var/www/html/nmap-scans" +# alias nmap="/var/www/html/nmaprincesspi/nmap-script.sh" +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"