Initial commit: mwhois with SCION AS support and decimal AS conversion

Based on mwhois by Antonios A. Chariton
Modifications for SCION AS support by Olaf Baumert, Axpo Systems AG
This commit is contained in:
Olaf Baumert
2025-06-03 11:01:02 +00:00
commit 34c631a06d
340 changed files with 212460 additions and 0 deletions

18
add-ip Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/python
ip = raw_input("Enter Network CIDR Block: ")
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 = ip.replace("/", "-")
d = open("db/ipv4/" + filename, "w+")
d.write(body)
d.close()
print("Done!")