changed how it prints the live hosts
This commit is contained in:
+2
-2
@@ -165,8 +165,8 @@ cidr_to_ips() {
|
|||||||
wait
|
wait
|
||||||
|
|
||||||
# read
|
# read
|
||||||
[[ -f /tmp/ips ]] && ips=($(</tmp/ips)) || { cg_color bby "Either dead hosts in this subnet or ping is disabled :("; exit; }
|
[[ -f /tmp/ips ]] && ips=($(sort -t. -n +3 /tmp/ips)) || { cg_color bby "Either dead hosts in this subnet or ping is disabled :("; exit; }
|
||||||
[[ $HOST_SCAN == true ]] && { echo -e "\e[1;92m${ips[*]}\e[0m"; exit; }
|
[[ $HOST_SCAN == true ]] && { out=${ips[*]}; l="\n"; echo -n "Number of live hosts: "; cg_color bbb ${#ips[@]}; echo -e "\e[1;92m${out//${IFS:0:1}/$l}\e[0m"; exit; }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Syntax
|
# Syntax
|
||||||
|
|||||||
Reference in New Issue
Block a user