Parse CIDRs and IP ranges to single IP addresses
range2ip utilizes pipx to handle environment isolation from other tools. Installation for pipx can be found here.
Step 1: Clone the repo and change directories
┌──(root💀HOST)-[/opt]
└─# cd range2ip
Step 2: Install range2ip with pipx
┌──(root💀HOST)-[/opt/range2ip]
└─# pipx install .
range2ip -h
usage: range2ip [-h] [-r RANGES] [-o OUTPUT] [-v]
Parse CIDRs and IP ranges to single IP addresses
optional arguments:
-h, --help show this help message and exit
-r RANGES, --ranges RANGES
Text file with IP ranges on each line (default: None)
-o OUTPUT, --output OUTPUT
Output file name (.txt is appended) (default: 1640623992.252814_output.txt)
-v, --verbose Print more info (default: False)
# range2ip -r ranges.txt -o newData
=================
Total ranges: 6
Total IPs: 540
Output file: newData.txt
=================