Fix looping challenges and invalid cookies. resolves #1006 (#1010)

Co-authored-by: ilike2burnthing <59480337+ilike2burnthing@users.noreply.github.com>
This commit is contained in:
21hsmw
2023-12-15 22:11:58 +00:00
committed by GitHub
parent 745c69491f
commit 1c855b8af0
4 changed files with 13 additions and 6 deletions

View File

@@ -294,6 +294,9 @@ def _evil_logic(req: V1RequestBase, driver: WebDriver, method: str) -> Challenge
# navigate to the page
logging.debug(f'Navigating to... {req.url}')
# Workaround for "challenge not detected" caused by the devtools window
driver.get(req.url)
driver.start_session() # required to bypass Cloudflare
if method == 'POST':
_post_request(req, driver)
else: