From a52baceaa05d998345bd60512ff89c3c476c19b3 Mon Sep 17 00:00:00 2001 From: jc Date: Fri, 6 Mar 2026 07:50:51 +0000 Subject: [PATCH] small change --- portradar.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portradar.sh b/portradar.sh index 7cf5767..0a93fd0 100755 --- a/portradar.sh +++ b/portradar.sh @@ -105,7 +105,7 @@ scan_tcp(){ do_ip(){ http_ports=(); https_ports=() - echo "-> Scanning $ip" + echo "-> Scanning $ip " if [[ $port ]]; then scan_tcp $port; pt /tmp/tcp_ports tcp [[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && probe="http:${http_ports[@]}" || probe="https:${https_ports[@]}"; echo $ip | ~/go/bin/httpx -silent -fr -sc -td -title -ports $probe 2>/dev/null || echo $ip | ~/.local/share/go/bin/httpx -silent -fr -sc -td -title -ports $probe 2>/dev/null || { cg_color olby "[+] httpx is not installed. Install by running: "; cg_color bbp "go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest"; exit; }; }; } @@ -122,7 +122,7 @@ do_cidr(){ cidr_to_ips $cidr for ip in ${ips[@]}; do http_ports=(); https_ports=() - echo "-> Scanning $ip" + echo "-> Scanning $ip " if [[ $port ]]; then scan_tcp $port; pt /tmp/tcp_ports tcp [[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && probe="http:${http_ports[@]}" || probe="https:${https_ports[@]}"; echo $ip | ~/go/bin/httpx -silent -fr -sc -td -title -ports $probe 2>/dev/null || echo $ip | ~/.local/share/go/bin/httpx -silent -fr -sc -td -title -ports $probe 2>/dev/null || { cg_color olby "[+] httpx is not installed. Install by running: "; cg_color bbp "go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest"; exit; }; echo; }; }