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.

add: new module leetcode in dev category

kaifcodecaccb5cd22d98
diff --git a/user_scanner/dev/leetcode.py b/user_scanner/dev/leetcode.py
new file mode 100644
index 0000000..e899d17
--- /dev/null
+++ b/user_scanner/dev/leetcode.py
@@ -0,0 +1,35 @@
+import re
+from user_scanner.core.orchestrator import status_validate, Result
+
+
+def validate_leetcode(user: str) -> Result:
+ if not (3 <= len(user) <= 30):
+ return Result.error("Length must be between 3 and 30 characters.")
+
+ if not re.match(r'^[a-zA-Z0-9._-]+$', user):
+ return Result.error("Can only use letters, numbers, underscores, periods, or hyphens.")
+
+ url = f"https://leetcode.com/u/{user}/"
+
+ headers = {
+ 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36",
+ 'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
+ 'Accept-Encoding': "identity",
+ 'upgrade-insecure-requests': "1",
+ 'accept-language': "en-US,en;q=0.9",
+ 'priority': "u=0, i"
+ }
+
+ return status_validate(url, 404, 200, headers=headers, follow_redirects=True)
+
+
+if __name__ == "__main__":
+ user = input("Username?: ").strip()
+ result = validate_leetcode(user)
+
+ if result == 1:
+ print("Available!")
+ elif result == 0:
+ print("Unavailable!")
+ else:
+ print(f"Error occurred! Reason: {result.get_reason()}")