From 61bec363e7898c4dab4b3293171bb15ccaea9215 Mon Sep 17 00:00:00 2001 From: Nils <32552517+byReqz@users.noreply.github.com> Date: Sun, 17 Jan 2021 18:19:04 +0000 Subject: [PATCH] added reason flag to nmap --- conn.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/conn.sh b/conn.sh index d12c228..3e8065d 100644 --- a/conn.sh +++ b/conn.sh @@ -38,7 +38,7 @@ while [ ! -z "$1" ]; do fping -m -e $2 echo "-----------------------------------------------------" echo "-------------------Portscan---------------------" - nmap -Pn $2 + nmap --reason -Pn $2 fping -m -c 4 -A $2 echo "------------------------------------------------" exit @@ -55,7 +55,7 @@ while [ ! -z "$1" ]; do fping -6 -e $2 echo "-----------------------------------------------------" echo "-------------------Portscan---------------------" - nmap -Pn -6 $2 + nmap --reason -Pn -6 $2 fping -6 -c 4 -A $2 echo "------------------------------------------------" exit @@ -66,7 +66,7 @@ while [ ! -z "$1" ]; do fping -4 -e $2 echo "-----------------------------------------------------" echo "-------------------Portscan---------------------" - nmap -Pn $2 + nmap --reason -Pn $2 fping -6 -c 4 -A $2 echo "------------------------------------------------" exit @@ -83,7 +83,7 @@ while [ ! -z "$1" ]; do read portscan if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then echo "-------------------Portscan---------------------" - nmap -Pn $2 + nmap --reason -Pn $2 fping -m -c 4 -A $2 echo "------------------------------------------------" exit @@ -101,7 +101,7 @@ while [ ! -z "$1" ]; do read portscan if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then echo "-------------------Portscan---------------------" - nmap -Pn -6 $1 + nmap --reason -Pn -6 $1 fping -6 -c 4 -A $1 echo "------------------------------------------------" else @@ -129,7 +129,7 @@ while [ ! -z "$1" ]; do read portscan if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then echo "-------------------Portscan---------------------" - nmap -Pn $1 + nmap --reason -Pn $1 fping -m -c 4 -A $1 echo "------------------------------------------------" exit