diff --git a/portradar.sh b/portradar.sh index 18c47d2..763d481 100755 --- a/portradar.sh +++ b/portradar.sh @@ -74,7 +74,7 @@ fast_ping(){ } scan_tcp(){ - [[ $1 ]] && { c=$1; ret=$(nc -w1 -z $ip $c 2>/dev/null; echo $?); [[ $ret == 0 ]] && { echo $c >> /tmp/tcp_ports; [[ $RUN_NMAP == true ]] && { command="nmap -Pn -n -sCV -p $(allports=($(/dev/null; echo $?); [[ $ret == 0 ]] && { echo $c >> /tmp/tcp_ports; [[ $RUN_NMAP == true ]] && { command="nmap -Pn -n -sCV -p $(allports=($(