Skip to content

Latest commit

 

History

History
41 lines (34 loc) · 1.24 KB

README.md

File metadata and controls

41 lines (34 loc) · 1.24 KB

Cidr-Autosolve (Depreciated use ip-autosolve.py)

Cidr-Autosolve is a Python script that takes a big IP range and numerous small IP range exclusions and outputs all IPs in the large range except those in the small range exclusion in Cidr notation.

An example would be:

python3 cidr-autosolve.py 10.15.0.0/17 "10.15.15.0/24, 10.15.32.0/24, 10.20.55.0/24 10.20.90.0/24"

Example

Where is this useful?

This is useful during an assessment where scanning of a large IP range is required and there are certain small IP range exclusions such as:

IP Range: 10.5.0.0/16
Excluded: 10.5.15.0/24, 10.5.22.0.24, 10.5. 61.0/24

ip-autosolve.py

It works on a different basis than cidr autosolve it can take any list of ips or cidr ranges and will output a list of ips that do not contain any ips that are in the range for the given exclusions list. Its simpler than cidr autosolve and is less likely to hit an edgecase. usage is python3 ip-autosolve.py scope exclusions

Example of scope:

10.10.10.0/24
10.20.10.0/24
10.30.20.0/24
10.40.0.0/255.255.255.0
10.50.12.0-10.50.13.255

Example of exclusions:

10.10.10.5
10.20.10.0/27
10.30.20.10
10.30.20.50
10.40.0.128/255.255.255.255
10.50.12.120-10.50.12.125