Project

General

Profile

Wiki ยป rnd-ip-generate.py

Generates a list of hostnames and ip's for rnd.ru.is - Joseph Foley, 2015-09-05 02:32

 
hostnames = [
'hydrogen',
'helium',
'lithium',
'beryllium',
'boron',
'carbon',
'nitrogen',
'oxygen',
'fluorine',
'neon',
'sodium',
'magnesium',
'aluminium',
'silicon',
'phosphorus',
'sulfur',
'chlorine',
'argon',
'potassium',
'calcium',
'scandium',
'titanium',
'vanadium',
'chromium',
'manganese',
'iron',
'cobalt',
'nickel',
'copper',
'zinc',
'gallium'
]

for i in range(1, 31):
hostname = hostnames[i]
atomicNumber = i + 1
addThis = 63

address = atomicNumber + addThis

print("{} {}.rnd.ru.is".format(hostname, hostname))
print("\tIPv4: 130.208.242.{}".format(address))
print("\tIPv6: 2a00:c88:5000:102::82d0:f2{}\n".format(hex(address)[2:]))
    (1-1/1)