diff --git a/nms b/nms index 5885e78..8c7c3d3 100644 --- a/nms +++ b/nms @@ -5,8 +5,23 @@ clear echo Target: "$@" #read x echo 'Running Nmap scan...' -nmap -A -v -sV -sC -Pn --script vulners,http-sql-injection,http-unsafe-output-escaping,http-enum.nse "$@" +nmap -A -v -sV -sC -Pn --script vulners,http-sql-injection,http-unsafe-output-escaping,http-enum.nse "$@" | tee -a ."$@".log +read -r -n 1 -s key + if [ "$key" = "R" ] || [ "$key" = "r" ]; then + echo "================================================================================" + echo " GENERATING REPORT FILE: "$@".pdf..." + echo "--------------------------------------------------------------------------------" + soffice --headless --convert-to pdf --outdir ./ ."$@".log + rm ."$@".log + exit + else + if [ "$key" = "q" ] || [ "$key" = "Q" ]; then + rm ."$@".log + exit + fi + fi echo 'Done.' #read -n1 #clear +rm ."$@".log done