Browse Source

Draft, untested. For finding friendlies on the network.

development
Tessa L. H. Lovelace 7 months ago
parent
commit
a4e8bff1c1
No known key found for this signature in database GPG Key ID: 1C84CA55B69F81D7
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      com/net/probe.sh

+ 3
- 0
com/net/probe.sh View File

@ -3,3 +3,6 @@
# @license;'cc-by-sa'
#
# @todo - scan the network for open ssh, attempt to auth with provided keypair(s)
net=$(ifconfig | grep "inet " | grep -v 127 | awk '{print $2}')
nmap -n -sn ${net}/24 -oG - | awk '/Up$/{print $2}'

Loading…
Cancel
Save