mirror of
https://github.com/byReqz/conn.git
synced 2024-11-22 09:01:15 +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 "-----------------------------------------------------"
|
||||||
echo "-------------------Portscan---------------------"
|
echo "-------------------Portscan---------------------"
|
||||||
nmap --reason -Pn $2
|
nmap --reason -Pn $2
|
||||||
fping -c 4 -A $2
|
echo ""
|
||||||
|
fping -c 4 $2
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
exit
|
exit
|
||||||
elif [[ $1 == "-n" ]] || [[ "$1" == "--no" ]];then
|
elif [[ $1 == "-n" ]] || [[ "$1" == "--no" ]];then
|
||||||
@ -56,7 +57,8 @@ while [ ! -z "$1" ]; do
|
|||||||
echo "-----------------------------------------------------"
|
echo "-----------------------------------------------------"
|
||||||
echo "-------------------Portscan---------------------"
|
echo "-------------------Portscan---------------------"
|
||||||
nmap --reason -Pn -6 $2
|
nmap --reason -Pn -6 $2
|
||||||
fping -6 -c 4 -A $2
|
echo ""
|
||||||
|
fping -6 -c 4 $2
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
exit
|
exit
|
||||||
elif [[ $1 == "-4" ]] || [[ "$1" == "--force-ipv4" ]];then
|
elif [[ $1 == "-4" ]] || [[ "$1" == "--force-ipv4" ]];then
|
||||||
@ -67,7 +69,8 @@ while [ ! -z "$1" ]; do
|
|||||||
echo "-----------------------------------------------------"
|
echo "-----------------------------------------------------"
|
||||||
echo "-------------------Portscan---------------------"
|
echo "-------------------Portscan---------------------"
|
||||||
nmap --reason -Pn $2
|
nmap --reason -Pn $2
|
||||||
fping -6 -c 4 -A $2
|
echo ""
|
||||||
|
fping -6 -c 4 $2
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
exit
|
exit
|
||||||
elif [[ "$1" == "-w" ]] || [[ "$1" == "--wait" ]];then
|
elif [[ "$1" == "-w" ]] || [[ "$1" == "--wait" ]];then
|
||||||
@ -84,7 +87,8 @@ while [ ! -z "$1" ]; do
|
|||||||
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
|
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
|
||||||
echo "-------------------Portscan---------------------"
|
echo "-------------------Portscan---------------------"
|
||||||
nmap --reason -Pn $2
|
nmap --reason -Pn $2
|
||||||
fping -c 4 -A $2
|
echo ""
|
||||||
|
fping -c 4 $2
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
@ -102,7 +106,8 @@ while [ ! -z "$1" ]; do
|
|||||||
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
|
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
|
||||||
echo "-------------------Portscan---------------------"
|
echo "-------------------Portscan---------------------"
|
||||||
nmap --reason -Pn -6 $1
|
nmap --reason -Pn -6 $1
|
||||||
fping -6 -c 4 -A $1
|
echo ""
|
||||||
|
fping -6 -c 4 $1
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
else
|
else
|
||||||
exit
|
exit
|
||||||
@ -130,7 +135,8 @@ while [ ! -z "$1" ]; do
|
|||||||
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
|
if [[ "$portscan" = "y" ]] || [[ -z "$portscan" ]]; then
|
||||||
echo "-------------------Portscan---------------------"
|
echo "-------------------Portscan---------------------"
|
||||||
nmap --reason -Pn $1
|
nmap --reason -Pn $1
|
||||||
fping -c 4 -A $1
|
echo ""
|
||||||
|
fping -c 4 $1
|
||||||
echo "------------------------------------------------"
|
echo "------------------------------------------------"
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user