Skip to content

Instantly share code, notes, and snippets.

@thomaswilley
Created July 15, 2018 21:05
Show Gist options
  • Save thomaswilley/a61bd741a5f25366bde890f6ca529136 to your computer and use it in GitHub Desktop.
Save thomaswilley/a61bd741a5f25366bde890f6ca529136 to your computer and use it in GitHub Desktop.
brute force scanner for sonos devices on a network
#!/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