🕵️♂️ (2-in-1) Email & Username OSINT suite featuring native MCP support for deep data extraction just from a single Email/Username. Analyzes 2720+ actively maintained scan vectors (210+ email / 2510+ username) for security research, investigations, and digital footprinting.
Python cybersecuritycybersecurity-toolsemail-osintethical-hackingethical-hacking-toolsidentificationinfosecosintosint-emailosint-toolosint-toolsosint-usernamepentestingpythonredteam-toolsredteamingthreat-intelligence
refactor(modules): migrate github and steam to use new media dictionary for avatars
Kaif97efc28ec333
diff --git a/user_scanner/user_scan/dev/github.py b/user_scanner/user_scan/dev/github.pyindex d03c52e..f4c8472 100644--- a/user_scanner/user_scan/dev/github.py+++ b/user_scanner/user_scan/dev/github.py@@ -17,6 +17,7 @@ def validate_github(user):if api_response.status_code == 200:data = api_response.json()extra = {}+ media = {}if name := data.get("name"): extra["name"] = nameif bio := data.get("bio"): extra["bio"] = bioif company := data.get("company"): extra["company"] = company@@ -39,7 +40,7 @@ def validate_github(user):passif followers := data.get("followers"): extra["followers"] = str(followers)if following := data.get("following"): extra["following"] = str(following)- if avatar_url := data.get("avatar_url"): extra["avatar"] = avatar_url+ if avatar_url := data.get("avatar_url"): media["avatar"] = avatar_urlif twitter := data.get("twitter_username"): extra["twitter"] = twitterif repos := data.get("public_repos"): extra["public_repos"] = str(repos)if created_at := data.get("created_at"): extra["created_at"] = created_at@@ -60,7 +61,7 @@ def validate_github(user):unique_links = list(dict.fromkeys(links))extra["links"] = ", ".join(unique_links)- return Result.taken(extra=extra, url=show_url)+ return Result.taken(extra=extra, media=media, url=show_url)elif api_response.status_code == 404:return Result.available(url=show_url)@@ -77,6 +78,7 @@ def validate_github(user):return Result.available(url=show_url)elif response.status_code == 200:extra = {}+ media = {}try:name_match = local_re.search(r'itemprop="name">\s*([^<\n\r]+)\s*</span>', response.text)if name_match: extra["name"] = name_match.group(1).strip()@@ -114,7 +116,7 @@ def validate_github(user):# Fixed avatar extraction (using meta tag instead of random images on page)avatar_match = local_re.search(r'<meta property=\"og:image\" content=\"([^\"]+)\"', response.text)- if avatar_match: extra["avatar"] = avatar_match.group(1).replace("&", "&")+ if avatar_match: media["avatar"] = avatar_match.group(1).replace("&", "&")orgs = local_re.findall(r'data-hovercard-type="organization"[^>]*href="/([^/"]+)"', response.text)if orgs:@@ -123,7 +125,7 @@ def validate_github(user):except Exception:pass- return Result.taken(extra=extra, url=show_url)+ return Result.taken(extra=extra, media=media, url=show_url)else:return Result.error(f"Unexpected status: {response.status_code}", url=show_url)diff --git a/user_scanner/user_scan/gaming/steam.py b/user_scanner/user_scan/gaming/steam.pyindex 8176560..cea1a7f 100644--- a/user_scanner/user_scan/gaming/steam.py+++ b/user_scanner/user_scan/gaming/steam.py@@ -13,6 +13,7 @@ def validate_steam(user):return Result.available()else:extra = {}+ media = {}steamid_match = local_re.search(r'"steamid"\s*:\s*"((?:[^"\\]|\\.)*)"', response.text)if steamid_match: extra["steam_id"] = steamid_match.group(1)@@ -28,11 +29,11 @@ def validate_steam(user):avatar_match = local_re.search(r'class="playerAvatar profile_header_size.*?<picture>.*?<img srcset="([^"]+)"', response.text, local_re.DOTALL)if avatar_match:- extra["avatar"] = avatar_match.group(1).strip()+ media["avatar"] = avatar_match.group(1).strip()else:full_avatar_match = local_re.search(r'https?://avatars\.(?:fastly\.)?steamstatic\.com/[a-f0-9]+_full\.jpg', response.text)if full_avatar_match:- extra["avatar"] = full_avatar_match.group(0)+ media["avatar"] = full_avatar_match.group(0)summary_match = local_re.search(r'"summary"\s*:\s*"((?:[^"\\]|\\.)*)"', response.text)if summary_match:@@ -42,7 +43,7 @@ def validate_steam(user):if clean_summary:extra["summary"] = clean_summary- return Result.taken(extra=extra)+ return Result.taken(extra=extra, media=media)return Result.error("Invalid status code")