ports -> mports

This commit is contained in:
jc
2025-04-28 23:01:37 +03:00
parent 3405749a28
commit 8682f1ba93
+3 -3
View File
@@ -203,7 +203,7 @@ while [ "$1" != "" ]; do
if [[ $1 =~ ^[0-9]+$ && $1 -le 65535 ]]; then
port=$1
elif [[ $1 =~ ^[0-9]+(,[0-9]+)+$ ]]; then
for p in ${1//,/ }; do [[ $p -gt 65535 ]] && help || ports=$1; done
for p in ${1//,/ }; do [[ $p -gt 65535 ]] && help || mports=$1; done
else
help
exit
@@ -256,8 +256,8 @@ elif [[ $cidr ]]; then
echo "--> Scanning $ip"
if [[ $port ]]; then
scan_tcp $port; pt /tmp/tcp_ports tcp
elif [[ $ports ]]; then
scan_tcp $ports; pt /tmp/tcp_ports tcp
elif [[ $mports ]]; then
scan_tcp $mports; pt /tmp/tcp_ports tcp
else
pp "TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp
fi