Python CIDR Block Converter – Update August 27th, 2018

Based on some input from a co-worker (thanks, @w00k-), I added a flag to my Python CIDR Block Converter that produces less output and is friendlier, for example, to our vulnerability scanners.

Now you can pass the --range flag to the script and get just the bottom and top of the range as a single string, e.g.:

$ ./cidr.py 10.1.1.1/28 --range
10.1.1.0-10.1.1.15

Updated script here: cidr.py



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>