uopdoots and pretties
This commit is contained in:
+4
-3
@@ -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"
|
||||
Reference in New Issue
Block a user