diff --git a/scripts/captcha_bypass_handler.py b/scripts/captcha_bypass_handler.py new file mode 100644 index 00000000..ac010adb --- /dev/null +++ b/scripts/captcha_bypass_handler.py @@ -0,0 +1,11 @@ +import json +from hermes_tools import browser_navigate, browser_vision + +def bypass_captcha(): + analysis = browser_vision( + question="Solve the CAPTCHA on the current page. Provide the solution text or coordinate clicks required. Provide a PASS/FAIL." + ) + return {"status": "PASS" if "PASS" in analysis.upper() else "FAIL", "solution": analysis} + +if __name__ == '__main__': + print(json.dumps(bypass_captcha(), indent=2))