Update nms

This commit is contained in:
2026-08-25 00:52:34 +00:00
parent b46aec4e47
commit 077f03b0d2
+13 -8
View File
@@ -1,12 +1,16 @@
#!/bin/bash
for arg in "$@"; do
rm ."$@".log
rm "$@".log
ts=$(date +%Y-%m-%d-%T)
clear
echo Target: "$@"
echo "================================================================================" | tee -a "$@".log
echo 'DATE: "$ts"' | tee -a "$@".log
echo 'HOST: "$@"' | tee -a "$@".log
echo "--------------------------------------------------------------------------------" | tee -a "$@".log
#read x
echo 'Running Nmap scan...'
nmap -A -v -sV -sC -Pn --script vulners,http-sql-injection,http-unsafe-output-escaping,http-enum.nse "$@" | tee -a ."$@".log
echo 'Running Nmap scan on "$@"...'
nmap -A -v -sV -sC -Pn --script vulners,http-sql-injection,http-unsafe-output-escaping,http-enum.nse "$@" | tee -a "$@".log
echo "--------------------------------------------------------------------------------"
echo " PRESS R FOR REPORT OR Q TO EXIT "
echo "================================================================================"
@@ -15,17 +19,18 @@ read -r -n 1 -s key
echo "================================================================================"
echo " GENERATING REPORT FILE: "$@".pdf..."
echo "--------------------------------------------------------------------------------"
soffice --headless --convert-to pdf --outdir ./ ."$@".log
rm ."$@".log
soffice --headless --convert-to pdf --outdir ./nms-"$@" "$@".log
rm "$@".log
open "$@".pdf
exit
else
if [ "$key" = "q" ] || [ "$key" = "Q" ]; then
rm ."$@".log
rm "$@".log
exit
fi
fi
echo 'Done.'
#read -n1
#clear
rm ."$@".log
rm "$@".log
done