mirror of
https://github.com/byReqz/conn.git
synced 2024-11-24 09:44:56 +00:00
made multi portscan feel faster
This commit is contained in:
parent
1dcd50767a
commit
009ec1802f
15
conn.sh
15
conn.sh
@ -46,13 +46,12 @@ fi
|
||||
echo " -wh/ --wait-http -- wait for ping on port 80"
|
||||
exit
|
||||
elif [[ $1 == "-m" ]] || [[ "$1" == "--multi" ]];then
|
||||
echo "multi-ip mode, portscan disabled"
|
||||
echo "multi-ip mode, shorter portscan enabled"
|
||||
echo "-------------------Availability----------------------"
|
||||
shift
|
||||
fping -e $@
|
||||
ptest=$(nping -c1 -p22,222,3389,135 $@ | grep -e "completed")
|
||||
echo ""
|
||||
echo "$ptest"
|
||||
nping -c1 -p22,222,3389,135 $@ | grep -e "completed"
|
||||
echo "-----------------------------------------------------"
|
||||
exit
|
||||
elif [[ $1 == "-f" ]] || [[ "$1" == "--fast" ]] || [[ $1 == "-s" ]] || [[ "$1" == "--simple" ]];then
|
||||
@ -355,21 +354,19 @@ fi
|
||||
fi
|
||||
exit
|
||||
elif [[ "$1" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ "$2" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] || [[ "$3" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$1" =~ [-] ]];then
|
||||
echo "multi-ip input detected, portscan disabled"
|
||||
echo "multi-ip input detected, shorter portscan enabled"
|
||||
echo "-------------------Availability----------------------"
|
||||
fping -e $@
|
||||
ptest=$(nping -c1 -p22,222,3389,135 $@ | grep -e "completed")
|
||||
echo ""
|
||||
echo "$ptest"
|
||||
nping -c1 -p22,222,3389,135 $@ | grep -e "completed"
|
||||
echo "-----------------------------------------------------"
|
||||
exit
|
||||
elif [[ ! "$1" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$2" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ "$1" =~ [:] ]] && [[ "$2" =~ [:] ]] || [[ ! "$3" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$1" =~ [-] ]] && [[ ! "$1" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ ! "$2" =~ [0-9]{1,3}(\.[0-9]{1,3}){3} ]] && [[ "$1" =~ [:] ]] && [[ "$2" =~ [:] ]];then
|
||||
echo "multi-ipv6 input detected, portscan disabled"
|
||||
echo "multi-ipv6 input detected, shorter portscan enabled"
|
||||
echo "-------------------Availability----------------------"
|
||||
fping -e -6 $@
|
||||
ptest=$(nping -6 -c1 -p22,222,3389,135 $@ | grep -e "completed")
|
||||
echo ""
|
||||
echo "$ptest"
|
||||
nping -6 -c1 -p22,222,3389,135 $@ | grep -e "completed"
|
||||
echo "-----------------------------------------------------"
|
||||
exit
|
||||
elif [[ "$1" == "-ht" ]] || [[ "$1" == "--http" ]];then
|
||||
|
Loading…
Reference in New Issue
Block a user