Skip to content

TKCERT/net-consolidator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Net-Consolidator: Consolidate, merge and subtract IP lists

Manually consolidating, merging or subtracting huge, overlapping IP lists is a difficult task. This tool provides those functions and processes files with IP ranges. In addition, the tool supports the following features:

  • Resulting IP networks are merged in CIDR notation while duplicates are removed
  • Accepts the following IP notations: 192.168.1.1/32 | 192.168.1.1 | 192.168.1.1-192.168.1.2

Examples

Consolidating of duplicates and hosts in IP lists (e.g. one subnet already includes parts of a different given subnet )

EXAMPLE: --fileIpAddresses <text_file_with_ip_addresses>

Perform plausibility checks (e.g. the subnet size should not exceed /20)

EXAMPLE: --fileIpAddresses <text_file_with_ip_addresses> --plausibilityChecks True --subnetSize 20

Return the IP address delta of two IP lists (e.g. ip_list_added - ip_list_already_scanned = delta)

EXAMPLE: --fileIpAddresses <text_file_with_ip_addresses_unscanned> --fileIpSubtracts <text_file_with_ip_addresses_scanned>

Exclude specific IP addresses from the IP list (e.g. should explicitely not be scanned)

EXAMPLE: --fileIpAddresses <text_file_with_ip_addresses_main> --fileIpSubtracts <text_file_with_ip_addresses_exclude>

Split given IP ranges in equally sized slices (e.g. 10 times 500 IP addresses)

EXAMPLE: --fileIpAddresses <text_file_with_ip_addresses> --splitIpRangeInSlices 10

Parameters

  -h, --help            show this help message and exit
  -f FILEIPADDRESSES, --fileIpAddresses FILEIPADDRESSES
                        text file with ip addresses per line (format: 192.168.0.1, 192.168.0.1/24, 192.168.0.1-192.168.0.10)
  -s FILEIPSUBTRACTS, --fileIpSubtracts FILEIPSUBTRACTS
                        text file with ip addresses per line to subtract from the fileIpAddresses
  -p PLAUSIBILITYCHECKS, --plausibilityChecks PLAUSIBILITYCHECKS
                        (optional) enable plausibility checks (e.g. subnet size)
  -n SUBNETSIZE, --subnetSize SUBNETSIZE
                        (optional) size of the network in CIDR (e.g. 24 for /24) for plausibility checks
  -t SPLITIPRANGEINSLICES, --splitIpRangeInSlices SPLITIPRANGEINSLICES
                        (optional) split IP networks in equally sized slices (e.g. 10 times 500 IP addresses

About

Consolidate, merge and subtract IP lists

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages