changed how it prints the live hosts
This commit is contained in:
+3
-3
@@ -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
|
||||||
@@ -231,4 +231,4 @@ elif [[ $cidr ]]; then
|
|||||||
[[ ($RUN_NMAP == true) && -f /tmp/tcp_ports ]] && echo
|
[[ ($RUN_NMAP == true) && -f /tmp/tcp_ports ]] && echo
|
||||||
cl
|
cl
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user