This repository has been archived on 2023-06-22. You can view files and clone it, but cannot push or open issues or pull requests.
expandCIDR/expandcidr.sh

13 lines
333 B
Bash
Raw Normal View History

2022-09-19 20:54:10 -04:00
# $1 - input filename
# $2 - output filename
# $3 - Randomize output number
# Help
if [ -z "$3"]
   then
       nmap -sL -n -iL $1 | grep 'Nmap scan report for' | cut -f 5 -d ' ' > $2
   else
       nmap -sL -n -iL $1 | grep 'Nmap scan report for' | cut -f 5 -d ' ' | shuf -n $3 > $2
fi