Skip to content

Instantly share code, notes, and snippets.

@tmslnz
Created October 15, 2014 11:25
Show Gist options
  • Save tmslnz/1fdaa04e15a25bb33712 to your computer and use it in GitHub Desktop.
Save tmslnz/1fdaa04e15a25bb33712 to your computer and use it in GitHub Desktop.
List all network devices on a range
# Use -n -sn to tell Nmap to ignore hostnames
nmap -sn 192.168.1.0/24 -oG - | grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment