Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save stephenlauck/3de2f1f05253fcaf7de0b99b88db64c8 to your computer and use it in GitHub Desktop.

Select an option

Save stephenlauck/3de2f1f05253fcaf7de0b99b88db64c8 to your computer and use it in GitHub Desktop.
example nmap
sudo nmap -n -sn -T5 --min-rate 5000 --host-timeout 500ms --min-parallelism 100 192.168.20.0/24 | grep -E "Nmap scan report|MAC Address" | awk '/scan report/{ip=$NF} /MAC/{print ip, $3}' | grep "$(virsh domiflist n5-wandr | awk '/br0/{print toupper($5)}')" | awk '{print $1}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment