Cleaned up code
This commit is contained in:
parent
464c45cc47
commit
f66804ee71
27
HTTPy.py
27
HTTPy.py
@ -1,8 +1,3 @@
|
|||||||
#Lookup jsonWhois.com, easy json API for whois lookups ;D
|
|
||||||
#Might need to run this in windows/on laptop/ in VM
|
|
||||||
|
|
||||||
#git sublime test
|
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
import subprocess
|
import subprocess
|
||||||
import re # YAY REVERSE ENGINEER... wait its just regex
|
import re # YAY REVERSE ENGINEER... wait its just regex
|
||||||
@ -12,14 +7,7 @@ import re # YAY REVERSE ENGINEER... wait its just regex
|
|||||||
inInput = ""
|
inInput = ""
|
||||||
partDomain = ""
|
partDomain = ""
|
||||||
running = 1
|
running = 1
|
||||||
#URL https://www.whois.com/whois/benjamyn-testing.com
|
|
||||||
#class df-block-raw
|
|
||||||
|
|
||||||
# def iterate(inArray):
|
|
||||||
# count = 0
|
|
||||||
# while count != len(inArray) - 1:
|
|
||||||
# print count, inArray[count]
|
|
||||||
# count = count + 1
|
|
||||||
|
|
||||||
def iterate(inArray, pre):
|
def iterate(inArray, pre):
|
||||||
count = 0
|
count = 0
|
||||||
@ -61,10 +49,6 @@ def getInput():
|
|||||||
if inInput == "quit":
|
if inInput == "quit":
|
||||||
running = 0
|
running = 0
|
||||||
|
|
||||||
#if partDomain[2] != "":
|
|
||||||
#run code
|
|
||||||
#else tell user they suck :D
|
|
||||||
|
|
||||||
#Main Loop
|
#Main Loop
|
||||||
while running == 1:
|
while running == 1:
|
||||||
getInput()
|
getInput()
|
||||||
@ -86,14 +70,3 @@ while running == 1:
|
|||||||
dig(inInput, "SRV")
|
dig(inInput, "SRV")
|
||||||
dig(inInput, "SOA")
|
dig(inInput, "SOA")
|
||||||
|
|
||||||
#whois(inInput)
|
|
||||||
|
|
||||||
# tmp = raw_input()
|
|
||||||
# whois(tmp)
|
|
||||||
# dig(tmp)
|
|
||||||
|
|
||||||
|
|
||||||
# Debugs
|
|
||||||
# print domain
|
|
||||||
# partDomain = domain.partition(".")
|
|
||||||
# print partDomain
|
|
||||||
Loading…
x
Reference in New Issue
Block a user