slight change

This commit is contained in:
jc
2025-06-23 16:57:14 +00:00
parent 5458270c1a
commit b244f8c0d8
+6 -6
View File
@@ -106,13 +106,13 @@ do_ip(){
echo "-> Scanning $ip" echo "-> Scanning $ip"
if [[ $port ]]; then if [[ $port ]]; then
scan_tcp $port; pt /tmp/tcp_ports tcp 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 olbp "go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest"; exit; }; }; } [[ $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; }; }; }
elif [[ $mports ]]; then elif [[ $mports ]]; then
scan_tcp $mports; pt /tmp/tcp_ports tcp scan_tcp $mports; pt /tmp/tcp_ports tcp
[[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && { a=${http_ports[@]}; http_ports=${a// /,}; [[ ${https_ports[@]} ]] && { a=${https_ports[@]}; https_ports=${a// /,}; probe="http:$http_ports,https:$https_ports"; } || probe="http:$http_ports"; } || { a=${https_ports[@]}; https_ports=${a// /,}; 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 olbp "go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest"; exit; }; }; } [[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && { a=${http_ports[@]}; http_ports=${a// /,}; [[ ${https_ports[@]} ]] && { a=${https_ports[@]}; https_ports=${a// /,}; probe="http:$http_ports,https:$https_ports"; } || probe="http:$http_ports"; } || { a=${https_ports[@]}; https_ports=${a// /,}; 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; }; }; }
else else
pp "TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp pp "TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp
[[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && { a=${http_ports[@]}; http_ports=${a// /,}; [[ ${https_ports[@]} ]] && { a=${https_ports[@]}; https_ports=${a// /,}; probe="http:$http_ports,https:$https_ports"; } || probe="http:$http_ports"; } || { a=${https_ports[@]}; https_ports=${a// /,}; 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 olbp "go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest"; exit; }; }; } [[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && { a=${http_ports[@]}; http_ports=${a// /,}; [[ ${https_ports[@]} ]] && { a=${https_ports[@]}; https_ports=${a// /,}; probe="http:$http_ports,https:$https_ports"; } || probe="http:$http_ports"; } || { a=${https_ports[@]}; https_ports=${a// /,}; 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; }; }; }
fi fi
} }
@@ -123,13 +123,13 @@ do_cidr(){
echo "-> Scanning $ip" echo "-> Scanning $ip"
if [[ $port ]]; then if [[ $port ]]; then
scan_tcp $port; pt /tmp/tcp_ports tcp 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 olbp "go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest"; exit; }; echo; }; } [[ $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; }; }
elif [[ $mports ]]; then elif [[ $mports ]]; then
scan_tcp $mports; pt /tmp/tcp_ports tcp scan_tcp $mports; pt /tmp/tcp_ports tcp
[[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && { a=${http_ports[@]}; http_ports=${a// /,}; [[ ${https_ports[@]} ]] && { a=${https_ports[@]}; https_ports=${a// /,}; probe="http:$http_ports,https:$https_ports"; } || probe="http:$http_ports"; } || { a=${https_ports[@]}; https_ports=${a// /,}; 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 olbp "go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest"; exit; }; echo; }; } [[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && { a=${http_ports[@]}; http_ports=${a// /,}; [[ ${https_ports[@]} ]] && { a=${https_ports[@]}; https_ports=${a// /,}; probe="http:$http_ports,https:$https_ports"; } || probe="http:$http_ports"; } || { a=${https_ports[@]}; https_ports=${a// /,}; 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; }; }
else else
pp "TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp pp "TCP ports"; scan_tcp; pt /tmp/tcp_ports tcp
[[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && { a=${http_ports[@]}; http_ports=${a// /,}; [[ ${https_ports[@]} ]] && { a=${https_ports[@]}; https_ports=${a// /,}; probe="http:$http_ports,https:$https_ports"; } || probe="http:$http_ports"; } || { a=${https_ports[@]}; https_ports=${a// /,}; 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 olbp "go install -v github.com/projectdiscovery/httpx/cmd/httpx@latest"; exit; }; echo; }; } [[ $HTTPX == true ]] && { [[ ${#http_ports[@]} != 0 || ${#https_ports[@]} != 0 ]] && { cg_color bbg "[+] Running httpx"; [[ ${http_ports[@]} ]] && { a=${http_ports[@]}; http_ports=${a// /,}; [[ ${https_ports[@]} ]] && { a=${https_ports[@]}; https_ports=${a// /,}; probe="http:$http_ports,https:$https_ports"; } || probe="http:$http_ports"; } || { a=${https_ports[@]}; https_ports=${a// /,}; 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; }; }
fi fi
[[ ($RUN_NMAP == true) && -f /tmp/tcp_ports ]] && echo [[ ($RUN_NMAP == true) && -f /tmp/tcp_ports ]] && echo
http_ports=(); https_ports=() http_ports=(); https_ports=()