Last active
October 10, 2018 05:43
-
-
Save heavypackets/0299ad488d2a96c9cb6c7569bc1abe33 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# PLEASE DON'T DO THIS | |
set -x | |
for addr in $(nmap -n -sL 192.168.1.0/24 | grep "Nmap scan report" | awk '{print $NF}') | |
do | |
curl -G --connect-timeout 1 http://${addr}/metrics > ${addr} | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment