From 58bc655650aaecc410b57009e0101f35a9c9b3de Mon Sep 17 00:00:00 2001 From: jc Date: Wed, 25 Sep 2024 20:30:54 +0300 Subject: [PATCH] write nmap output to nmap.out --- portradar.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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=($(