mirror of
https://github.com/byReqz/conn.git
synced 2024-12-26 13:31:48 +00:00
small update
- removed -A flag from second fping - added spacing between nmap results and second fping
This commit is contained in:
parent
a5c9fc02c2
commit
6d9c2152b5
18
conn.sh
18
conn.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user