This script will take an IP address range or a list of addresses/ranges and either expand them into single IPs or combine them into a supernet. Very useful for those abnormal scopes.
EasyScope - A script to combine or expand IP Addresses by Jonathan Broche (@g0jhonny)
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-f FILE, --file FILE A new line delimieted file containing subnets (e.g.,
192.168.1.1/24) or IP ranges (e.g.
192.168.1.1-192.168.1.254).
-e [EXPAND], --expand [EXPAND]
Expand IP adddresses/ranges into single IP addresses
-c [COMBINE], --combine [COMBINE]
Combine IPs addresses/ranges into supernets