uopdoots and pretties

This commit is contained in:
2025-05-15 13:41:46 -06:00
parent ea153760ce
commit 8d11a679f1
2 changed files with 26 additions and 25 deletions
+4 -3
View File
@@ -1,4 +1,5 @@
#!/bin/bash
# alias nmap="/var/www/html/nmaprincesspi"
scansPath="/var/www/html/nmap-scans"
fileName="nmap-$(date +%Y%m%d-%H%M%S).xml"
filePath="$scansPath/$fileName"
@@ -6,8 +7,8 @@ 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"
echo -e "\n\nRunning:\n\t$cmd"
echo -e "Report Saving to\n\t$webPath\n\n"
eval "$cmd"
echo -e "Done!\n\nReport Visible at $webPath\n\n"
echo -e "\n\nReport Visible at $webPath"