Created
March 16, 2016 23:47
-
-
Save andwn/cfa455df004c70191bf2 to your computer and use it in GitHub Desktop.
IPv6 version of everyip.py
This file contains hidden or 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
| from os import SEEK_CUR | |
| f = open("everyip6.txt", "w") | |
| b = [0,0,0,0,0,0,0,0] | |
| for b[0] in range(0,0xFFFF): | |
| for b[1] in range(0,0xFFFF): | |
| for b[2] in range(0,0xFFFF): | |
| for b[3] in range(0,0xFFFF): | |
| for b[4] in range(0,0xFFFF): | |
| for b[5] in range(0,0xFFFF): | |
| for b[6] in range(0,0xFFFF): | |
| for b[7] in range(0,0xFFFF): | |
| for i in b: | |
| f.write("%04X:" % i) | |
| f.seek(-1, SEEK_CUR) | |
| f.write("\n") | |
| f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment