1
0
mirror of https://github.com/byReqz/conn.git synced 2024-11-22 09:01:15 +00:00

added reason flag to nmap

This commit is contained in:
Nils 2021-01-17 18:19:04 +00:00 committed by GitHub
parent 0adaa2b521
commit 61bec363e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

12
conn.sh
View File

@ -38,7 +38,7 @@ while [ ! -z "$1" ]; do
fping -m -e $2 fping -m -e $2
echo "-----------------------------------------------------" echo "-----------------------------------------------------"
echo "-------------------Portscan---------------------" echo "-------------------Portscan---------------------"
nmap -Pn $2 nmap --reason -Pn $2
fping -m -c 4 -A $2 fping -m -c 4 -A $2
echo "------------------------------------------------" echo "------------------------------------------------"
exit exit
@ -55,7 +55,7 @@ while [ ! -z "$1" ]; do
fping -6 -e $2 fping -6 -e $2
echo "-----------------------------------------------------" echo "-----------------------------------------------------"
echo "-------------------Portscan---------------------" echo "-------------------Portscan---------------------"
nmap -Pn -6 $2 nmap --reason -Pn -6 $2
fping -6 -c 4 -A $2 fping -6 -c 4 -A $2
echo "------------------------------------------------" echo "------------------------------------------------"
exit exit
@ -66,7 +66,7 @@ while [ ! -z "$1" ]; do
fping -4 -e $2 fping -4 -e $2
echo "-----------------------------------------------------" echo "-----------------------------------------------------"
echo "-------------------Portscan---------------------" echo "-------------------Portscan---------------------"
nmap -Pn $2 nmap --reason -Pn $2
fping -6 -c 4 -A $2 fping -6 -c 4 -A $2
echo "------------------------------------------------" echo "------------------------------------------------"
exit exit
@ -83,7 +83,7 @@ while [ ! -z "$1" ]; do
read portscan read portscan
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
echo "-------------------Portscan---------------------" echo "-------------------Portscan---------------------"
nmap -Pn $2 nmap --reason -Pn $2
fping -m -c 4 -A $2 fping -m -c 4 -A $2
echo "------------------------------------------------" echo "------------------------------------------------"
exit exit
@ -101,7 +101,7 @@ while [ ! -z "$1" ]; do
read portscan read portscan
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
echo "-------------------Portscan---------------------" echo "-------------------Portscan---------------------"
nmap -Pn -6 $1 nmap --reason -Pn -6 $1
fping -6 -c 4 -A $1 fping -6 -c 4 -A $1
echo "------------------------------------------------" echo "------------------------------------------------"
else else
@ -129,7 +129,7 @@ while [ ! -z "$1" ]; do
read portscan read portscan
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
echo "-------------------Portscan---------------------" echo "-------------------Portscan---------------------"
nmap -Pn $1 nmap --reason -Pn $1
fping -m -c 4 -A $1 fping -m -c 4 -A $1
echo "------------------------------------------------" echo "------------------------------------------------"
exit exit