slight change
This commit is contained in:
+6
-6
@@ -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 ]] && { echo "[+] Running httpx"; [[ ${http_ports[@]} ]] && probe="http:${http_ports[@]}" || probe="https:${https_ports[@]}"; echo $ip | ~/go/bin/httpx -silent -fr -sc -td -title -ports $probe || echo $ip | ~/.local/share/go/bin/httpx -silent -fr -sc -td -title -ports $probe; }; }
|
[[ $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; }; }; }
|
||||||
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 ]] && { echo "[+] 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 || echo $ip | ~/.local/share/go/bin/httpx -silent -fr -sc -td -title -ports $probe; }; }
|
[[ $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; }; }; }
|
||||||
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 ]] && { echo "[+] 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 || echo $ip | ~/.local/share/go/bin/httpx -silent -fr -sc -td -title -ports $probe; }; }
|
[[ $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; }; }; }
|
||||||
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 ]] && { echo "[+] Running httpx"; [[ ${http_ports[@]} ]] && probe="http:${http_ports[@]}" || probe="https:${https_ports[@]}"; echo $ip | ~/go/bin/httpx -silent -fr -sc -td -title -ports $probe || echo $ip | ~/.local/share/go/bin/httpx -silent -fr -sc -td -title -ports $probe; 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 olbp "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 ]] && { echo "[+] 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 || echo $ip | ~/.local/share/go/bin/httpx -silent -fr -sc -td -title -ports $probe; 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 olbp "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 ]] && { echo "[+] 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 || echo $ip | ~/.local/share/go/bin/httpx -silent -fr -sc -td -title -ports $probe; 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 olbp "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=()
|
||||||
|
|||||||
Reference in New Issue
Block a user