small change
This commit is contained in:
+2
-2
@@ -105,7 +105,7 @@ scan_tcp(){
|
|||||||
|
|
||||||
do_ip(){
|
do_ip(){
|
||||||
http_ports=(); https_ports=()
|
http_ports=(); https_ports=()
|
||||||
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 bbp "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; }; }; }
|
||||||
@@ -122,7 +122,7 @@ do_cidr(){
|
|||||||
cidr_to_ips $cidr
|
cidr_to_ips $cidr
|
||||||
for ip in ${ips[@]}; do
|
for ip in ${ips[@]}; do
|
||||||
http_ports=(); https_ports=()
|
http_ports=(); https_ports=()
|
||||||
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 bbp "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; }; }
|
||||||
|
|||||||
Reference in New Issue
Block a user