Skip to content

Instantly share code, notes, and snippets.

@pcting
Created November 17, 2020 19:30
Show Gist options
  • Save pcting/c2ac899d5fcf5aee9c8b2c7faeb1630f to your computer and use it in GitHub Desktop.
Save pcting/c2ac899d5fcf5aee9c8b2c7faeb1630f to your computer and use it in GitHub Desktop.
generate a range of ips
#!/bin/sh
for IP in $(nmap -n -sL 10.8.9.10-50 | awk '{print $5}' | grep --color=never '^[0-9]'); do
echo $IP
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment