Added ping notifier
This commit is contained in:
parent
e31b3ec4c3
commit
65ade42111
9
HTTPy.py
9
HTTPy.py
@ -7,6 +7,7 @@ import re # YAY REVERSE ENGINEER... wait its just regex
|
||||
inInput = ""
|
||||
partDomain = ""
|
||||
running = 1
|
||||
pingOn = 1
|
||||
|
||||
|
||||
def iterate(inArray, pre):
|
||||
@ -48,7 +49,11 @@ def getInput():
|
||||
global inInput
|
||||
global partDomain
|
||||
global running
|
||||
inInput = raw_input("Please enter a domain/IP: ")
|
||||
global pingOn
|
||||
if pingOn:
|
||||
inInput = raw_input("[P] Please enter a domain/IP: ")
|
||||
else:
|
||||
inInput = raw_input("[p] Please enter a domain/IP: ")
|
||||
partDomain = inInput.split(".")
|
||||
if inInput == "quit":
|
||||
running = 0
|
||||
@ -56,6 +61,8 @@ def getInput():
|
||||
#Main Loop
|
||||
while running == 1:
|
||||
getInput()
|
||||
if inInput == "ping":
|
||||
pingOn = !pingOn
|
||||
if inInput == "":
|
||||
pass
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user