From bc76d9a11a1a3f4d7e5f05c723f11ce7854c1ad9 Mon Sep 17 00:00:00 2001 From: bmixed <2+bmixed@noreply.localhost> Date: Tue, 25 Aug 2026 00:33:02 +0000 Subject: [PATCH] Update nms --- nms | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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