Skip to content

Instantly share code, notes, and snippets.

@cmccandless
Created March 20, 2018 16:41
Show Gist options
  • Save cmccandless/1a19451f0b79d2eb34e453dbc2a90089 to your computer and use it in GitHub Desktop.
Save cmccandless/1a19451f0b79d2eb34e453dbc2a90089 to your computer and use it in GitHub Desktop.
Nmap LAN host scan
#!/bin/sh
nmap -sVL 192.168.1.1-127 |
grep -v "for 192.168.1." |
grep -oP "(?<=for ).*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment