This commit is contained in:
Lukas 2020-11-01 20:57:16 +01:00
parent bc33b89fbd
commit 7e012d3c88
1 changed files with 6 additions and 1 deletions

View File

@ -19,15 +19,18 @@ def initialize():
def checksites(sitepath=None):
print(f"{tools.heading('Checking Sitedata')}\n{tools.spacer}")
print(f"{tools.heading('Checking Site(s)')}\n{tools.spacer}")
sitedic = {}
# Find sites directory
if sitepath:
sitedir = sitepath
else:
rootdir = os.path.dirname(os.path.abspath(__file__))
sitedir = rootdir + r"\sites"
# Parse all sitefiles into objects
for sitefile in glob.glob(sitedir + r"\*.json"):
asite = site.Site(sitefile)
@ -54,7 +57,9 @@ def createproxys():
print(f"> {Fore.MAGENTA}{one.name:10s}{Style.RESET_ALL} |"
f" {tools.keyword('PROXYIP')}({one.ip}) {tools.keyword('WORKING')}({one.isworking})")
# We can test our proxy using this site:
# one.testurl("http://www.whatismyproxy.com/")
proxydic[one.name] = one
print(tools.spacer)