INNER CODE UNIT · Python

_page_has_cf_challenge

1837620622/cloudflare-bypass-2026 · bypass.py:60

def _page_has_cf_challenge(page_source: str) -> bool:
    """判断页面源码是否仍像 Cloudflare 挑战页"""
    text = (page_source or "").lower()
    return any(x in text for x in CF_INDICATORS)


def _try_click_captcha(sb) -> None:
    """
    尝试 OS 级点击验证码。
    优先 uc_gui_click_captcha(更隐蔽),失败再试 uc_gui_handle_captcha。
    """
    try:
        sb.uc_gui_click_captcha()
        return
    except Exception as e:
        print(f"[!] uc_gui_click_captcha: {e}")
    try:
        if hasattr(sb, "uc_gui_handle_captcha"):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…