https://github.com/cldrn/cidrtoips
reads a list of IP ranges in CIDR notation and prints the individual IP addresses.
https://github.com/cldrn/cidrtoips
Last synced: about 1 year ago
JSON representation
reads a list of IP ranges in CIDR notation and prints the individual IP addresses.
- Host: GitHub
- URL: https://github.com/cldrn/cidrtoips
- Owner: cldrn
- License: gpl-3.0
- Created: 2016-10-04T19:27:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-10-06T03:17:21.000Z (over 9 years ago)
- Last Synced: 2025-04-11T18:53:12.972Z (about 1 year ago)
- Language: Python
- Homepage: http://calderonpale.com
- Size: 15.6 KB
- Stars: 14
- Watchers: 1
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cidrToIps
This simple script reads a list of IP ranges in CIDR notation and prints the individual IP addresses.
Posted this script because I got tired of re-writing the same script everytime I needed this. If you write security tools, please support CIDR notation and make my life easier.
Usage: ./cidrToIps.py -i
~~~~
$ cat cidr-list.txt
192.168.0.1/29
192.168.1.1/30
$ ./cidrToIps.py -i cidr-list.txt
Reading IP ranges in CIDR notation from file: cidr-list.txt
192.168.0.0
192.168.0.1
192.168.0.2
192.168.0.3
192.168.0.4
192.168.0.5
192.168.0.6
192.168.0.7
192.168.1.0
192.168.1.1
192.168.1.2
192.168.1.3
~~~~
calderon@websec.mx