[shell] Add find_local_ssh_hosts

This commit is contained in:
Ivan Malison 2017-09-09 20:03:59 -07:00
parent 4d41e9e79a
commit 8f248f7009
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -477,3 +477,7 @@ function all_after_char {
echo ${line##*$1}
done;
}
function find_local_ssh_hosts {
nmap -p 22 --open -sV 10.0.0.0/24 | grep -Eo "[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}"
}