Skip to content

🕵️‍♂️ (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.

refactor: enable deep username scan for all 6 community modules and bypass PoW for airliners.py

Kaif379ce0893c3d
diff --git a/user_scanner/user_scan/community/airliners.py b/user_scanner/user_scan/community/airliners.py
index b7b3bb6..38e565a 100644
--- a/user_scanner/user_scan/community/airliners.py
+++ b/user_scanner/user_scan/community/airliners.py
@@ -1,8 +1,58 @@
-from user_scanner.core.orchestrator import status_validate
-
+import hashlib
+import re
+from user_scanner.core.orchestrator import Result, make_request
def validate_airliners(user):
url = f"https://www.airliners.net/user/{user}/profile"
- show_url = f"https://www.airliners.net/user/{user}/profile"
-
- return status_validate(url, 404, 200, show_url=show_url)
+
+ try:
+ response = make_request(url, follow_redirects=True)
+
+ if response.status_code == 202:
+ html = response.text
+ nonce_match = re.search(r"challenge_nonce:'([^']+)'", html)
+ hmac_match = re.search(r"challenge_hmac:'([^']+)'", html)
+ diff_match = re.search(r"difficulty:'([^']+)'", html)
+ char_match = re.search(r"difficulty_char:'([^']+)'", html)
+ issued_match = re.search(r"issued_at:'([^']+)'", html)
+
+ if not all([nonce_match, hmac_match, diff_match, char_match, issued_match]):
+ return Result.error("Failed to parse PoW challenge parameters", url=url)
+
+ nonce = nonce_match.group(1)
+ hmac = hmac_match.group(1)
+ diff = int(diff_match.group(1))
+ char = char_match.group(1)
+ issued = issued_match.group(1)
+
+ target_prefix = char * diff
+ prefix_str = nonce + issued
+
+ pow_bypass = None
+ for i in range(1, 10000000):
+ u = str(i)
+ data = (prefix_str + u).encode('utf-8')
+ hash_hex = hashlib.sha256(data).hexdigest()
+
+ if hash_hex.startswith(target_prefix):
+ pow_bypass = f"{nonce}|{issued}|{u}|{hash_hex}|{hmac}"
+ break
+
+ if pow_bypass:
+ response = make_request(
+ url,
+ follow_redirects=True,
+ cookies={"pow_bypass": pow_bypass}
+ )
+ else:
+ return Result.error("Failed to solve PoW challenge", url=url)
+
+ if response.status_code == 404:
+ return Result.available(url=url)
+ if response.status_code == 200:
+ return Result.taken(url=url)
+
+ return Result.error(f"Unexpected status code: {response.status_code}", url=url)
+
+ except Exception as e:
+ return Result.error(e, url=url)
diff --git a/user_scanner/user_scan/community/archwiki.py b/user_scanner/user_scan/community/archwiki.py
index 54a8372..9bc2a4c 100644
--- a/user_scanner/user_scan/community/archwiki.py
+++ b/user_scanner/user_scan/community/archwiki.py
@@ -2,7 +2,7 @@ from user_scanner.core.orchestrator import Result, generic_validate
def validate_archwiki(user):
- url = f"https://wiki.archlinux.org/api.php?action=query&format=json&list=users&ususers={user}&usprop=cancreate&formatversion=2"
+ url = f"https://wiki.archlinux.org/api.php?action=query&format=json&list=users&ususers={user}&usprop=blockinfo|groups|editcount|registration|gender&formatversion=2"
show_url = f"https://wiki.archlinux.org/title/User:{user}"
def process(response):
@@ -16,7 +16,23 @@ def validate_archwiki(user):
if user_data.get("missing") is True:
return Result.available()
if "userid" in user_data:
- return Result.taken()
+ extra = {}
+ try:
+ extra["id"] = user_data.get("userid")
+ if "registration" in user_data:
+ extra["joined"] = user_data.get("registration")
+ if "editcount" in user_data:
+ extra["edit_count"] = user_data.get("editcount")
+ if "gender" in user_data and user_data.get("gender") != "unknown":
+ extra["gender"] = user_data.get("gender")
+ if "groups" in user_data:
+ # Exclude general wildcard group if it's there
+ groups = [g for g in user_data.get("groups", []) if g != "*"]
+ if groups:
+ extra["groups"] = ", ".join(groups)
+ except Exception:
+ pass
+ return Result.taken(extra=extra)
return Result.error("Unexpected user structure")
except Exception as e:
diff --git a/user_scanner/user_scan/community/coderlegion.py b/user_scanner/user_scan/community/coderlegion.py
index 81eecd0..f6b21fe 100644
--- a/user_scanner/user_scan/community/coderlegion.py
+++ b/user_scanner/user_scan/community/coderlegion.py
@@ -1,8 +1,62 @@
-from user_scanner.core.orchestrator import status_validate
+import re
+from user_scanner.core.orchestrator import Result, generic_validate
def validate_coderlegion(user):
url = f"https://coderlegion.com/user/{user}"
show_url = f"https://coderlegion.com/user/{user}"
- return status_validate(url, 404, 200, show_url=show_url, timeout=15.0)
+ def process(response):
+ if response.status_code == 404:
+ return Result.available()
+ if response.status_code == 200:
+ extra = {}
+ html = response.text
+ try:
+ # Extract name
+ name_match = re.search(r'<h1 class="profile-name">([^<]+)</h1>', html)
+ if name_match:
+ extra["name"] = name_match.group(1).strip()
+
+ # Extract headline
+ headline_match = re.search(r'<div class="profile-headline">([^<]+)</div>', html)
+ if headline_match:
+ extra["headline"] = headline_match.group(1).strip()
+
+ # Extract joined date
+ joined_match = re.search(r'<span class="profile-joined">Joined ([^<]+)</span>', html)
+ if joined_match:
+ extra["joined"] = joined_match.group(1).strip()
+
+ # Extract avatar URL
+ avatar_match = re.search(r'<div class="profile-avatar">\s*<a[^>]+>\s*<img[^>]+src="([^"]+)"', html)
+ if avatar_match:
+ avatar_url = avatar_match.group(1)
+ if avatar_url.startswith("../"):
+ avatar_url = "https://coderlegion.com/" + avatar_url.lstrip("../")
+ extra["avatar"] = avatar_url.replace("&amp;", "&")
+
+ # Extract stats
+ points_match = re.search(r'<strong>([^<]+)</strong> Points', html)
+ if points_match:
+ extra["points"] = points_match.group(1).strip()
+
+ badges_match = re.search(r'<strong>([^<]+)</strong> Badges', html)
+ if badges_match:
+ extra["badges"] = badges_match.group(1).strip()
+
+ followers_match = re.search(r'<strong>([^<]+)</strong> Followers', html)
+ if followers_match:
+ extra["followers"] = followers_match.group(1).strip()
+
+ following_match = re.search(r'<strong>([^<]+)</strong> Following', html)
+ if following_match:
+ extra["following"] = following_match.group(1).strip()
+
+ except Exception:
+ pass
+ return Result.taken(extra=extra)
+
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, show_url=show_url, timeout=15.0)
diff --git a/user_scanner/user_scan/community/hackernews.py b/user_scanner/user_scan/community/hackernews.py
index 4b43fd0..de53f0e 100644
--- a/user_scanner/user_scan/community/hackernews.py
+++ b/user_scanner/user_scan/community/hackernews.py
@@ -17,7 +17,33 @@ def validate_hackernews(user: str) -> Result:
if "No such user." in response.text:
return Result.available()
if f"profile: {user}" in response.text.lower() or "created:" in response.text:
- return Result.taken()
+ extra = {}
+ html = response.text
+ try:
+ # Extract joined date
+ created_match = re.search(r'created:</td><td><span class="age"><a[^>]+>([^<]+)</a></span></td>', html)
+ if not created_match:
+ created_match = re.search(r'created:</td><td>([^<]+)</td>', html)
+ if created_match:
+ extra["joined"] = created_match.group(1).strip()
+
+ # Extract karma
+ karma_match = re.search(r'karma:</td><td>([^<]+)</td>', html)
+ if karma_match:
+ # Clean punctuation or extra formatting
+ karma_str = re.sub(r'[^\d]', '', karma_match.group(1))
+ if karma_str:
+ extra["karma"] = int(karma_str)
+
+ # Extract bio / about
+ about_match = re.search(r'about:</td><td[^>]*>(.*?)</td>', html, re.DOTALL)
+ if about_match:
+ bio_clean = re.sub(r'<[^>]+>', '', about_match.group(1)).strip()
+ if bio_clean:
+ extra["bio"] = bio_clean
+ except Exception:
+ pass
+ return Result.taken(extra=extra)
return Result.error("Unexpected response structure")
return generic_validate(
diff --git a/user_scanner/user_scan/community/lemmy.py b/user_scanner/user_scan/community/lemmy.py
index b221e5f..ab4cbbc 100644
--- a/user_scanner/user_scan/community/lemmy.py
+++ b/user_scanner/user_scan/community/lemmy.py
@@ -1,6 +1,6 @@
import re
-from user_scanner.core.orchestrator import status_validate
+from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
@@ -17,4 +17,38 @@ def validate_lemmy(user: str) -> Result:
url = f"https://lemmy.world/api/v3/user?username={user}"
show_url = f"https://lemmy.world/u/{user}"
- return status_validate(url, [400, 404], 200, show_url=show_url, timeout=5.0)
+ def process(response):
+ if response.status_code in [400, 404]:
+ return Result.available()
+ if response.status_code == 200:
+ extra = {}
+ try:
+ data = response.json()
+ person_view = data.get("person_view", {})
+ person = person_view.get("person", {})
+ counts = person_view.get("counts", {})
+
+ if "id" in person:
+ extra["id"] = person["id"]
+ if "name" in person:
+ extra["name"] = person["name"]
+ if person.get("display_name"):
+ extra["display_name"] = person["display_name"]
+ if person.get("avatar"):
+ extra["avatar"] = person["avatar"]
+ if person.get("published"):
+ extra["joined"] = person["published"]
+ if "bot_account" in person:
+ extra["bot"] = person["bot_account"]
+ if "is_admin" in person_view:
+ extra["admin"] = person_view["is_admin"]
+ if "post_count" in counts:
+ extra["posts"] = counts["post_count"]
+ if "comment_count" in counts:
+ extra["comments"] = counts["comment_count"]
+ except Exception:
+ pass
+ return Result.taken(extra=extra)
+ return Result.error(f"Unexpected status code: {response.status_code}")
+
+ return generic_validate(url, process, show_url=show_url, timeout=5.0)
diff --git a/user_scanner/user_scan/community/stackoverflow.py b/user_scanner/user_scan/community/stackoverflow.py
index 46bbfce..10b62a6 100644
--- a/user_scanner/user_scan/community/stackoverflow.py
+++ b/user_scanner/user_scan/community/stackoverflow.py
@@ -1,10 +1,11 @@
+import re
from user_scanner.core.orchestrator import generic_validate
from user_scanner.core.result import Result
def validate_stackoverflow(user: str) -> Result:
url = f"https://stackoverflow.com/users/filter?search={user}"
- show_url = "https://stackoverflow.com"
+ show_url = url
def process(response):
if response.status_code == 200:
@@ -13,9 +14,39 @@ def validate_stackoverflow(user: str) -> Result:
if "No users matched your search." in text:
return Result.available()
- pattern = f">{user}<"
- if pattern in text:
- return Result.taken()
+ # Split HTML by card indicator to parse each user card block
+ cards = re.split(r'<div class="grid--item user-info', text)
+ found_card = None
+ found_path = None
+
+ for card in cards[1:]:
+ link_match = re.search(r'<a href="(/users/(\d+)/([^"/]+))"[^>]*>([^<]+)</a>', card)
+ if link_match:
+ full_path, uid, slug, name = link_match.groups()
+ if slug.lower() == user.lower() or name.strip().lower() == user.lower():
+ found_card = card
+ found_path = full_path
+ break
+
+ if found_card:
+ extra = {}
+ try:
+ loc_match = re.search(r'<span class="user-location">([^<]*)</span>', found_card)
+ rep_match = re.search(r'title="[^"]*total reputation:\s*([^"]+)"', found_card)
+ img_match = re.search(r'<img src="([^"]+)"', found_card)
+
+ if loc_match and loc_match.group(1).strip():
+ extra["location"] = loc_match.group(1).strip()
+ if rep_match:
+ extra["reputation"] = rep_match.group(1).strip()
+ if img_match:
+ avatar_url = img_match.group(1).strip()
+ if avatar_url.startswith("//"):
+ avatar_url = "https:" + avatar_url
+ extra["avatar"] = avatar_url.replace("&amp;", "&")
+ except Exception:
+ pass
+ return Result.taken(extra=extra)
return Result.available()