Created
July 15, 2018 21:05
-
-
Save thomaswilley/a61bd741a5f25366bde890f6ca529136 to your computer and use it in GitHub Desktop.
brute force scanner for sonos devices on a network
This file contains hidden or 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 | |
# brute force scanner for sonos devices on a network | |
# (just looks for open port 1400: e.g., http://ip:1400/support/review) | |
echo Scanning network for Sonos devices... | |
for i in $(seq 1 255); | |
do | |
IP=192.168.1.$i | |
PORT=1400 | |
nc -n -z -G 1 $IP $PORT 2>&1 | awk '{print $3}' | |
done | |
echo ...scanning completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment