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 subprocess
|
||||
import re # YAY REVERSE ENGINEER... wait its just regex
|
||||
@ -12,14 +7,7 @@ import re # YAY REVERSE ENGINEER... wait its just regex
|
||||
inInput = ""
|
||||
partDomain = ""
|
||||
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):
|
||||
count = 0
|
||||
@ -61,10 +49,6 @@ def getInput():
|
||||
if inInput == "quit":
|
||||
running = 0
|
||||
|
||||
#if partDomain[2] != "":
|
||||
#run code
|
||||
#else tell user they suck :D
|
||||
|
||||
#Main Loop
|
||||
while running == 1:
|
||||
getInput()
|
||||
@ -86,14 +70,3 @@ while running == 1:
|
||||
dig(inInput, "SRV")
|
||||
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