🕵️♂️ (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
feat: add Ravelry email and username modules (#700)
Kristo Isberg5ac82765481d
diff --git a/user_scanner/core/helpers.py b/user_scanner/core/helpers.pyindex 97d8bc9..f2b7d94 100644--- a/user_scanner/core/helpers.py+++ b/user_scanner/core/helpers.py@@ -27,6 +27,7 @@ EMAIL_RE = re.compile(rf"{_EMAIL_LOCAL}@(?:{_EMAIL_LABEL}\.)+[A-Za-z]{{2,63}}")LOUD_MODULES: Dict[str, List[str]] = {"user": [],"email": [+ "ravelry","leetcode","netflix","sexvid",diff --git a/user_scanner/email_scan/community/ravelry.py b/user_scanner/email_scan/community/ravelry.pynew file mode 100644index 0000000..c1cb5a8--- /dev/null+++ b/user_scanner/email_scan/community/ravelry.py@@ -0,0 +1,51 @@+"""Ravelry email recovery probe. Sends email and requires --allow-loud in scans."""++import re+from html import unescape++from curl_cffi.requests.exceptions import RequestException++from user_scanner.core.impersonate import impersonate_request_async+from user_scanner.core.result import Result++FORM_URL = "https://www.ravelry.com/account/forgot"+REMIND_URL = "https://www.ravelry.com/account/remind"+++async def validate_ravelry(email: str) -> Result:+ """Send a recovery email if registered; direct library calls also send email."""+ try:+ page = await impersonate_request_async(FORM_URL, params={"forgot": "both"})+ token = re.search(r'name="authenticity_token"[^>]*value="([^"]+)"', page.text)+ if page.status_code != 200 or not token:+ return Result.error(+ f"Could not read Ravelry recovery form: HTTP {page.status_code}",+ url=REMIND_URL,+ )++ response = await impersonate_request_async(+ REMIND_URL,+ "POST",+ data={+ "authenticity_token": unescape(token.group(1)),+ "forgot": "both",+ "email": email,+ "g-recaptcha-response": "",+ },+ allow_redirects=True,+ )+ except RequestException as exc:+ return Result.error(exc, url=REMIND_URL)++ if response.status_code == 200:+ if (+ "We've emailed a link that you can use to get back into your account."+ in response.text+ ):+ return Result.taken(url=REMIND_URL)+ if "We couldn't find an account with this email address." in response.text:+ return Result.available(url=REMIND_URL)+ return Result.error(+ f"Unexpected Ravelry recovery response: HTTP {response.status_code}",+ url=REMIND_URL,+ )diff --git a/user_scanner/user_scan/community/ravelry.py b/user_scanner/user_scan/community/ravelry.pynew file mode 100644index 0000000..bd921ce--- /dev/null+++ b/user_scanner/user_scan/community/ravelry.py@@ -0,0 +1,52 @@+"""Check Ravelry usernames through the login form with an invalid password."""++import re+import secrets+from html import unescape++from curl_cffi.requests.exceptions import RequestException++from user_scanner.core.impersonate import impersonate_request+from user_scanner.core.result import Result++LOGIN_URL = "https://www.ravelry.com/account/login"+++def validate_ravelry(user: str) -> Result:+ """The login form checks the account namespace; profiles require sign-in."""+ show_url = f"https://www.ravelry.com/people/{user}"+ try:+ page = impersonate_request(LOGIN_URL)+ token = re.search(r'name="authenticity_token"[^>]*value="([^"]+)"', page.text)+ if page.status_code != 200 or not token:+ return Result.error(+ f"Could not read Ravelry login form: HTTP {page.status_code}",+ url=show_url,+ )++ response = impersonate_request(+ LOGIN_URL,+ "POST",+ data={+ "authenticity_token": unescape(token.group(1)),+ "user[login]": user,+ "user[password]": secrets.token_urlsafe(32),+ },+ )+ except RequestException as exc:+ return Result.error(exc, url=show_url)++ if (+ response.status_code == 200+ and "Your password is incorrect\n</div>" in response.text+ ):+ return Result.taken(url=show_url)+ if (+ response.status_code == 404+ and "</strong> isn't a Ravelry user." in response.text+ ):+ return Result.available(url=show_url)+ return Result.error(+ f"Unexpected Ravelry login response: HTTP {response.status_code}",+ url=show_url,+ )