Added loop
This commit is contained in:
parent
488bceffb7
commit
f21c68017d
6
HTTPy.py
6
HTTPy.py
@ -11,6 +11,7 @@ import re # YAY REVERSE ENGINEER... wait its just regex
|
|||||||
|
|
||||||
inInput = ""
|
inInput = ""
|
||||||
partDomain = ""
|
partDomain = ""
|
||||||
|
running = 1
|
||||||
#URL https://www.whois.com/whois/benjamyn-testing.com
|
#URL https://www.whois.com/whois/benjamyn-testing.com
|
||||||
#class df-block-raw
|
#class df-block-raw
|
||||||
|
|
||||||
@ -54,14 +55,17 @@ def ipLookup(inDomain):
|
|||||||
def getInput():
|
def getInput():
|
||||||
global inInput
|
global inInput
|
||||||
global partDomain
|
global partDomain
|
||||||
|
global running
|
||||||
inInput = raw_input("Please enter a domain/IP: ")
|
inInput = raw_input("Please enter a domain/IP: ")
|
||||||
partDomain = inInput.split(".")
|
partDomain = inInput.split(".")
|
||||||
|
if inInput == quit:
|
||||||
|
running = 0
|
||||||
|
|
||||||
#if partDomain[2] != "":
|
#if partDomain[2] != "":
|
||||||
#run code
|
#run code
|
||||||
#else tell user they suck :D
|
#else tell user they suck :D
|
||||||
|
|
||||||
|
while running == 1:
|
||||||
getInput()
|
getInput()
|
||||||
if len(partDomain) == 4:
|
if len(partDomain) == 4:
|
||||||
ipLookup(inInput)
|
ipLookup(inInput)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user