Created
August 4, 2021 12:57
-
-
Save ixs/5b18c0d8cdbd897fc97e76e7e140b16b to your computer and use it in GitHub Desktop.
prips in python - support ipv6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import ipaddress | |
import sys | |
for ip in ipaddress.ip_network(sys.argv[1]).hosts(): | |
print(ip) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment