14 lines
432 B
Bash
Executable File
14 lines
432 B
Bash
Executable File
#!/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"
|
|
webPath="http://10.0.0.51/nmap-scans/$fileName"
|
|
|
|
cmd="nmap -oX \"$filePath\" --stylesheet \"/nmaprincesspi/xsl/princesspi-nmap.xsl\" $*"
|
|
|
|
echo -e "\n\nRunning:\n\t$cmd"
|
|
echo -e "Report Saving to\n\t$webPath\n\n"
|
|
eval "$cmd"
|
|
|
|
echo -e "\n\nReport Visible at $webPath" |