Skip to content

Commit

Permalink
edited
Browse files Browse the repository at this point in the history
  • Loading branch information
MHProDev committed Mar 6, 2022
1 parent 336e3d8 commit 703b868
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ def info(domain):
return {"success": False}


def handleProxyList(con, proxy_li, proxy_ty):
def handleProxyList(con, proxy_li, proxy_ty, url=None):
if proxy_ty not in {4, 5, 1, 0, 6}:
exit("Socks Type Not Found [4, 5, 1, 0, 6]")
if proxy_ty == 6:
Expand All @@ -1216,7 +1216,7 @@ def handleProxyList(con, proxy_li, proxy_ty):
)
Proxies = ProxyChecker.checkAll(
Proxies, timeout=1, threads=threads,
**({'url': url.human_repr()} if url else {"url:": "https://httpbin.org/get"})
**({'url': url.human_repr()} if url else {})
)
if not Proxies:
exit(
Expand Down Expand Up @@ -1316,7 +1316,7 @@ def handleProxyList(con, proxy_li, proxy_ty):
logger.warning(
"RPC (Request Pre Connection) is higher than 100")

proxies = handleProxyList(con, proxy_li, proxy_ty)
proxies = handleProxyList(con, proxy_li, proxy_ty, url)
for _ in range(threads):
HttpFlood(url, host, method, rpc, event, uagents,
referers, proxies).start()
Expand Down Expand Up @@ -1370,7 +1370,7 @@ def handleProxyList(con, proxy_li, proxy_ty):
if len(argv) == 8:
logger.setLevel("DEBUG")

elif len(argv) == 6:
else:
logger.setLevel("DEBUG")

for _ in range(threads):
Expand Down

0 comments on commit 703b868

Please sign in to comment.