Skip to content

Instantly share code, notes, and snippets.

@sysarcher
Created August 21, 2018 11:26
Show Gist options
  • Save sysarcher/6a22dea72c5b9fbae975f5e0277eb6ff to your computer and use it in GitHub Desktop.
Save sysarcher/6a22dea72c5b9fbae975f5e0277eb6ff to your computer and use it in GitHub Desktop.
Get MAC addr using nmap
sudo nmap -n -sn 10.62.226.159/24 | awk '/Nmap scan report/{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