small change

This commit is contained in:
jc
2026-03-06 07:50:51 +00:00
parent 89d38c105f
commit a52baceaa0
+2 -2
View File
@@ -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; }; }