AI powered OSINT engine to discover and map 840+ social media identities across the web
Python aiartificial-intelligencedebainhackhackerhackinghackingtoolsinformationinformation-gatheringlinuxlinux-desktoposintpythonpython-scriptpython3social-mediasocialmediahackingtermuxtermux-tool
feat: add Chinese platforms and reduce bot-wall false positives
BBmmo-code284db1946d7e
diff --git a/.gitignore b/.gitignoreindex 7220fa2..37d7b6e 100644--- a/.gitignore+++ b/.gitignore@@ -10,3 +10,5 @@ venv/results/cache/config.json+.pip-cache/+.pip-tmp/diff --git a/src/aliens_eye/core/scanner.py b/src/aliens_eye/core/scanner.pyindex a05fc14..fbe5b8f 100644--- a/src/aliens_eye/core/scanner.py+++ b/src/aliens_eye/core/scanner.py@@ -120,6 +120,39 @@ def format_site_url(site_name: str, url_template: str, username: str) -> str:return url+# 反爬/人机验证/报错页的标题或 meta 里常出现的特征词。命中说明是风控拦截页、+# Cloudflare/验证码/安全验证/拒绝访问/服务宕机等,不是真实用户主页。+_BOT_WALL_KEYWORDS = (+ "just a moment",+ "checking your browser",+ "client challenge",+ "captcha",+ "verify you are human",+ "verify your browser",+ "security verification",+ "access denied",+ "attention required",+ "please wait",+ "too many requests",+ "ddos",+ "general error",+ "internal server error",+ "temporarily unavailable",+ "has been retired",+ "are you human",+ "the request could not be",+ "invalid user",+)+++def _looks_like_bot_wall(signals: dict[str, Any]) -> bool:+ """判断该响应是否是反爬/验证/报错类页面,而非真实用户主页。"""+ title = str(signals.get("title", "") or "").lower()+ meta = " ".join(str(m) for m in (signals.get("meta_samples") or [])).lower()+ haystack = f"{title} {meta}"+ return any(keyword in haystack for keyword in _BOT_WALL_KEYWORDS)++def build_connector(config: ScannerConfig, limit: int) -> aiohttp.BaseConnector:"""TCP connector, or a SOCKS proxy connector when a socks:// proxy is set."""if config.proxy and config.proxy.lower().startswith(("socks4://", "socks5://")):@@ -358,6 +391,13 @@ class UsernameScanner:confidence,)+ # 反爬/人机验证/报错页绝不算作真实命中:这类页面常返回 200 且带+ # user/profile 字样,易被误判为 Found。统一降级为 Maybe 以减少假阳性。+ if status_text == "Found" and _looks_like_bot_wall(bundle.signals):+ status_text = "Maybe"+ confidence = min(confidence, 55)+ ai_analysis["method"] = f"{ai_analysis['method']}-botwall-capped"+if status_text in {"Found", "Not Found"} and confidence >= 85:label = "found" if status_text == "Found" else "not_found"self.fingerprints.add(site_name, label, fingerprint)diff --git a/src/aliens_eye/data/sites.json b/src/aliens_eye/data/sites.jsonindex 2b96be7..b03d029 100644--- a/src/aliens_eye/data/sites.json+++ b/src/aliens_eye/data/sites.json@@ -838,5 +838,25 @@"turbosquid": "https://www.turbosquid.com/Search/Artists/{}","gumroad.creator": "https://{}.gumroad.com/","lemon8.creator": "https://www.lemon8-app.com/{}",- "librarything.collection": "https://www.librarything.com/catalog/{}"+ "librarything.collection": "https://www.librarything.com/catalog/{}",+ "CSDN": "https://blog.csdn.net/{}",+ "segmentfault": "https://segmentfault.com/u/{}",+ "cnblogs": "https://home.cnblogs.com/u/{}",+ "oschina": "https://my.oschina.net/{}",+ "leetcode.cn": "https://leetcode.cn/u/{}",+ "V2EX": "https://www.v2ex.com/member/{}",+ "hupu": "https://my.hupu.com/{}",+ "51cto": "https://blog.51cto.com/{}",+ "新浪博客": "https://blog.sina.com.cn/{}",+ "LOFTER": "https://{}.lofter.com/",+ "花瓣网": "https://huaban.com/{}",+ "优酷": "https://i.youku.com/{}",+ "网易博客": "http://{}.blog.163.com/",+ "简书": "https://www.jianshu.com/u/{}",+ "天涯社区": "https://{}.tianya.cn/",+ "GitCode": "https://gitcode.com/{}",+ "AtomGit": "https://atomgit.com/{}",+ "Linux.do": "https://linux.do/u/{}",+ "Coding.net": "https://coding.net/u/{}",+ "搜狐博客": "http://{}.blog.sohu.com/"}\ No newline at end of file