diff --git a/portradar.sh b/portradar.sh index f3b5f63..d10b892 100755 --- a/portradar.sh +++ b/portradar.sh @@ -1,7 +1,5 @@ #!/bin/bash -# fingerprint some ports and try out some basic enumeration: For Example SMB Null Authentication - help() { cat <> /tmp/ips; return; } nn=$(ping -n -w2 -c1 $ip >/dev/null 2>&1; echo $?) [[ $nn == 0 ]] && { echo $ip >> /tmp/ips; } } @@ -177,6 +177,7 @@ cidr_to_ips() { RUN_NMAP=false HOST_SCAN=false PRINT_OPEN=false +FORCE=false while [ "$1" != "" ]; do case $1 in -p | --port) @@ -197,6 +198,9 @@ while [ "$1" != "" ]; do --hosts) HOST_SCAN=true ;; + --force) + FORCE=true + ;; *) if [[ $1 =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then ip=$1 @@ -236,4 +240,4 @@ elif [[ $cidr ]]; then [[ ($RUN_NMAP == true) && -f /tmp/tcp_ports ]] && echo cl done -fi +fi \ No newline at end of file