Skip to content

Instantly share code, notes, and snippets.

@ZaneH
Created December 18, 2015 04:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZaneH/a23016689445297ed0e4 to your computer and use it in GitHub Desktop.
Save ZaneH/a23016689445297ed0e4 to your computer and use it in GitHub Desktop.
Find jailbroken devices on your network.
#!/bin/bash
clear
wlanmax=$(ifconfig wlan0 | grep "inet addr:" | cut -d: -f2 | awk '{print $1};' | awk -F. '{print $1"."$2"."$3".1/24"};')
echo "Grabbing inet address..."
echo "Grabbing gatemask..."
nmap -sP $wlanmax | grep "Nmap scan report for" | awk '{system("ssh -t -t -o ConnectTimeout=5 root@"$5)};'
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment