mirror of
https://git.photon.obnh.io/AXSY/whois.git
synced 2025-12-11 04:39:15 +00:00
Based on mwhois by Antonios A. Chariton Modifications for SCION AS support by Olaf Baumert, Axpo Systems AG
19 lines
431 B
Python
Executable File
19 lines
431 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
domain = raw_input("Enter Domain Name: ")
|
|
body = ""
|
|
print("You have now entered record editing mode. Enter a single @ line to save.")
|
|
while True:
|
|
buff = raw_input("")
|
|
buff = buff.replace("\r\n", "\n")
|
|
buff = buff.replace("\n", "\r\n")
|
|
if(buff.replace("\r\n", "") == "@"):
|
|
break
|
|
body = body + buff + "\r\n"
|
|
|
|
filename = domain
|
|
d = open("db/domains/" + filename, "w+")
|
|
d.write(body)
|
|
d.close()
|
|
print("Done!")
|