Skip to content

Instantly share code, notes, and snippets.

@danielreiser
Created August 7, 2018 11:32
Show Gist options
  • Save danielreiser/c71b40fe84cd9a5461c4dd797e3630a4 to your computer and use it in GitHub Desktop.
Save danielreiser/c71b40fe84cd9a5461c4dd797e3630a4 to your computer and use it in GitHub Desktop.
Scan subnet for connected client, output IP & MAC-Address
nmap -n -sP 172.16.57.0/24 | awk '{printf $5;printf " ";getline;getline;print $3;}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment