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

small update

- removed -A flag from second fping
- added spacing between nmap results and second fping
This commit is contained in:
Nils 2021-01-17 22:19:45 +00:00 committed by GitHub
parent a5c9fc02c2
commit 6d9c2152b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

18
conn.sh
View File

@ -39,7 +39,8 @@ while [ ! -z "$1" ]; do
echo "-----------------------------------------------------"
echo "-------------------Portscan---------------------"
nmap --reason -Pn $2
fping -c 4 -A $2
echo ""
fping -c 4 $2
echo "------------------------------------------------"
exit
elif [[ $1 == "-n" ]] || [[ "$1" == "--no" ]];then
@ -56,7 +57,8 @@ while [ ! -z "$1" ]; do
echo "-----------------------------------------------------"
echo "-------------------Portscan---------------------"
nmap --reason -Pn -6 $2
fping -6 -c 4 -A $2
echo ""
fping -6 -c 4 $2
echo "------------------------------------------------"
exit
elif [[ $1 == "-4" ]] || [[ "$1" == "--force-ipv4" ]];then
@ -67,7 +69,8 @@ while [ ! -z "$1" ]; do
echo "-----------------------------------------------------"
echo "-------------------Portscan---------------------"
nmap --reason -Pn $2
fping -6 -c 4 -A $2
echo ""
fping -6 -c 4 $2
echo "------------------------------------------------"
exit
elif [[ "$1" == "-w" ]] || [[ "$1" == "--wait" ]];then
@ -84,7 +87,8 @@ while [ ! -z "$1" ]; do
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
echo "-------------------Portscan---------------------"
nmap --reason -Pn $2
fping -c 4 -A $2
echo ""
fping -c 4 $2
echo "------------------------------------------------"
exit
else
@ -102,7 +106,8 @@ while [ ! -z "$1" ]; do
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
echo "-------------------Portscan---------------------"
nmap --reason -Pn -6 $1
fping -6 -c 4 -A $1
echo ""
fping -6 -c 4 $1
echo "------------------------------------------------"
else
exit
@ -130,7 +135,8 @@ while [ ! -z "$1" ]; do
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
echo "-------------------Portscan---------------------"
nmap --reason -Pn $1
fping -c 4 -A $1
echo ""
fping -c 4 $1
echo "------------------------------------------------"
exit
else