Skip to content

Instantly share code, notes, and snippets.

@andwn
Created March 16, 2016 23:47
Show Gist options
  • Select an option

  • Save andwn/cfa455df004c70191bf2 to your computer and use it in GitHub Desktop.

Select an option

Save andwn/cfa455df004c70191bf2 to your computer and use it in GitHub Desktop.
IPv6 version of everyip.py
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