🕵️♂️ (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 email module for Alza (#492)
beranka8814587089cc
diff --git a/user_scanner/email_scan/shopping/alza_at.py b/user_scanner/email_scan/shopping/alza_at.pynew file mode 100644index 0000000..fa97c76--- /dev/null+++ b/user_scanner/email_scan/shopping/alza_at.py@@ -0,0 +1,92 @@+import httpx++from user_scanner.core.result import Result+++async def _check(email: str) -> Result:+ """+ Checks whether a given email is associated with an account or order on the Alza website.++ The check has two steps:++ 1. Retrieve cookies by fetching the main page.+ 2. Use the CheckLoginAvailability API endpoint. Example response:+ {+ "LoginAvailabilityType": 1,+ "DevErrorMessage": null,+ "Message": null,+ "ErrorNeoPurchaseFailed": false,+ "ErrorLevel": 0,+ "RedirectUrlOrderDetail": null,+ "PaymentAction": null,+ "CanShowFastCheckoutButton": false+ }+ The value of LoginAvailabilityType indicates whether the email is associated with a registered account (1),+ was used for an order but is not associated with an account (2), or neither (0).++ I do not know whether the other fields can have different values; they remained unchanged during testing.+ """+ main_url = "https://www.alza.at"+ check_login_availability_url = (+ f"{main_url}/Services/EShopService.svc/CheckLoginAvailability"+ )++ headers = {+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0",+ "Referer": main_url,+ "Origin": main_url,+ "Accept": "application/json",+ }++ async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:+ # Fetch the main page to retrieve cookies+ response = await client.get(main_url, headers=headers)++ if response.status_code != 200:+ return Result.error(+ f"Failed to access the {main_url}, HTTP {response.status_code}"+ )++ # Send post request to the API+ payload = {"login": email}+ response = await client.post(+ check_login_availability_url, headers=headers, json=payload+ )++ if response.status_code != 200:+ return Result.error(+ f"Failed to retrieve information from API, HTTP {response.status_code}"+ )++ try:+ data = response.json()+ login_availability_type = data.get("LoginAvailabilityType")+ except (ValueError, AttributeError):+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )++ match login_availability_type:+ case 0:+ # Not registered, no orders with this email+ return Result.available(url=main_url)+ case 1:+ # Account with this email exists+ return Result.taken(url=main_url)+ case 2:+ # Orders with this email were created, but the email does not belong to any account+ return Result.taken(+ url=main_url,+ reason="Order was made using this email, but account does not exist.",+ )+ case _:+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )+++async def validate_alza_at(email: str) -> Result:+ """+ Checks whether an email is associated with an account or order on alza.at website.+ """+ return await _check(email)diff --git a/user_scanner/email_scan/shopping/alza_cz.py b/user_scanner/email_scan/shopping/alza_cz.pynew file mode 100644index 0000000..02305f7--- /dev/null+++ b/user_scanner/email_scan/shopping/alza_cz.py@@ -0,0 +1,92 @@+import httpx++from user_scanner.core.result import Result+++async def _check(email: str) -> Result:+ """+ Checks whether a given email is associated with an account or order on the Alza website.++ The check has two steps:++ 1. Retrieve cookies by fetching the main page.+ 2. Use the CheckLoginAvailability API endpoint. Example response:+ {+ "LoginAvailabilityType": 1,+ "DevErrorMessage": null,+ "Message": null,+ "ErrorNeoPurchaseFailed": false,+ "ErrorLevel": 0,+ "RedirectUrlOrderDetail": null,+ "PaymentAction": null,+ "CanShowFastCheckoutButton": false+ }+ The value of LoginAvailabilityType indicates whether the email is associated with a registered account (1),+ was used for an order but is not associated with an account (2), or neither (0).++ I do not know whether the other fields can have different values; they remained unchanged during testing.+ """+ main_url = "https://www.alza.cz"+ check_login_availability_url = (+ f"{main_url}/Services/EShopService.svc/CheckLoginAvailability"+ )++ headers = {+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0",+ "Referer": main_url,+ "Origin": main_url,+ "Accept": "application/json",+ }++ async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:+ # Fetch the main page to retrieve cookies+ response = await client.get(main_url, headers=headers)++ if response.status_code != 200:+ return Result.error(+ f"Failed to access the {main_url}, HTTP {response.status_code}"+ )++ # Send post request to the API+ payload = {"login": email}+ response = await client.post(+ check_login_availability_url, headers=headers, json=payload+ )++ if response.status_code != 200:+ return Result.error(+ f"Failed to retrieve information from API, HTTP {response.status_code}"+ )++ try:+ data = response.json()+ login_availability_type = data.get("LoginAvailabilityType")+ except (ValueError, AttributeError):+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )++ match login_availability_type:+ case 0:+ # Not registered, no orders with this email+ return Result.available(url=main_url)+ case 1:+ # Account with this email exists+ return Result.taken(url=main_url)+ case 2:+ # Orders with this email were created, but the email does not belong to any account+ return Result.taken(+ url=main_url,+ reason="Order was made using this email, but account does not exist.",+ )+ case _:+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )+++async def validate_alza_cz(email: str) -> Result:+ """+ Checks whether an email is associated with an account or order on alza.cz website.+ """+ return await _check(email)diff --git a/user_scanner/email_scan/shopping/alza_de.py b/user_scanner/email_scan/shopping/alza_de.pynew file mode 100644index 0000000..d937f57--- /dev/null+++ b/user_scanner/email_scan/shopping/alza_de.py@@ -0,0 +1,92 @@+import httpx++from user_scanner.core.result import Result+++async def _check(email: str) -> Result:+ """+ Checks whether a given email is associated with an account or order on the Alza website.++ The check has two steps:++ 1. Retrieve cookies by fetching the main page.+ 2. Use the CheckLoginAvailability API endpoint. Example response:+ {+ "LoginAvailabilityType": 1,+ "DevErrorMessage": null,+ "Message": null,+ "ErrorNeoPurchaseFailed": false,+ "ErrorLevel": 0,+ "RedirectUrlOrderDetail": null,+ "PaymentAction": null,+ "CanShowFastCheckoutButton": false+ }+ The value of LoginAvailabilityType indicates whether the email is associated with a registered account (1),+ was used for an order but is not associated with an account (2), or neither (0).++ I do not know whether the other fields can have different values; they remained unchanged during testing.+ """+ main_url = "https://www.alza.de"+ check_login_availability_url = (+ f"{main_url}/Services/EShopService.svc/CheckLoginAvailability"+ )++ headers = {+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0",+ "Referer": main_url,+ "Origin": main_url,+ "Accept": "application/json",+ }++ async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:+ # Fetch the main page to retrieve cookies+ response = await client.get(main_url, headers=headers)++ if response.status_code != 200:+ return Result.error(+ f"Failed to access the {main_url}, HTTP {response.status_code}"+ )++ # Send post request to the API+ payload = {"login": email}+ response = await client.post(+ check_login_availability_url, headers=headers, json=payload+ )++ if response.status_code != 200:+ return Result.error(+ f"Failed to retrieve information from API, HTTP {response.status_code}"+ )++ try:+ data = response.json()+ login_availability_type = data.get("LoginAvailabilityType")+ except (ValueError, AttributeError):+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )++ match login_availability_type:+ case 0:+ # Not registered, no orders with this email+ return Result.available(url=main_url)+ case 1:+ # Account with this email exists+ return Result.taken(url=main_url)+ case 2:+ # Orders with this email were created, but the email does not belong to any account+ return Result.taken(+ url=main_url,+ reason="Order was made using this email, but account does not exist.",+ )+ case _:+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )+++async def validate_alza_de(email: str) -> Result:+ """+ Checks whether an email is associated with an account or order on alza.de website.+ """+ return await _check(email)diff --git a/user_scanner/email_scan/shopping/alza_hu.py b/user_scanner/email_scan/shopping/alza_hu.pynew file mode 100644index 0000000..97ecd2d--- /dev/null+++ b/user_scanner/email_scan/shopping/alza_hu.py@@ -0,0 +1,92 @@+import httpx++from user_scanner.core.result import Result+++async def _check(email: str) -> Result:+ """+ Checks whether a given email is associated with an account or order on the Alza website.++ The check has two steps:++ 1. Retrieve cookies by fetching the main page.+ 2. Use the CheckLoginAvailability API endpoint. Example response:+ {+ "LoginAvailabilityType": 1,+ "DevErrorMessage": null,+ "Message": null,+ "ErrorNeoPurchaseFailed": false,+ "ErrorLevel": 0,+ "RedirectUrlOrderDetail": null,+ "PaymentAction": null,+ "CanShowFastCheckoutButton": false+ }+ The value of LoginAvailabilityType indicates whether the email is associated with a registered account (1),+ was used for an order but is not associated with an account (2), or neither (0).++ I do not know whether the other fields can have different values; they remained unchanged during testing.+ """+ main_url = "https://www.alza.hu"+ check_login_availability_url = (+ f"{main_url}/Services/EShopService.svc/CheckLoginAvailability"+ )++ headers = {+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0",+ "Referer": main_url,+ "Origin": main_url,+ "Accept": "application/json",+ }++ async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:+ # Fetch the main page to retrieve cookies+ response = await client.get(main_url, headers=headers)++ if response.status_code != 200:+ return Result.error(+ f"Failed to access the {main_url}, HTTP {response.status_code}"+ )++ # Send post request to the API+ payload = {"login": email}+ response = await client.post(+ check_login_availability_url, headers=headers, json=payload+ )++ if response.status_code != 200:+ return Result.error(+ f"Failed to retrieve information from API, HTTP {response.status_code}"+ )++ try:+ data = response.json()+ login_availability_type = data.get("LoginAvailabilityType")+ except (ValueError, AttributeError):+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )++ match login_availability_type:+ case 0:+ # Not registered, no orders with this email+ return Result.available(url=main_url)+ case 1:+ # Account with this email exists+ return Result.taken(url=main_url)+ case 2:+ # Orders with this email were created, but the email does not belong to any account+ return Result.taken(+ url=main_url,+ reason="Order was made using this email, but account does not exist.",+ )+ case _:+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )+++async def validate_alza_hu(email: str) -> Result:+ """+ Checks whether an email is associated with an account or order on alza.hu website.+ """+ return await _check(email)diff --git a/user_scanner/email_scan/shopping/alza_sk.py b/user_scanner/email_scan/shopping/alza_sk.pynew file mode 100644index 0000000..5ae6d42--- /dev/null+++ b/user_scanner/email_scan/shopping/alza_sk.py@@ -0,0 +1,92 @@+import httpx++from user_scanner.core.result import Result+++async def _check(email: str) -> Result:+ """+ Checks whether a given email is associated with an account or order on the Alza website.++ The check has two steps:++ 1. Retrieve cookies by fetching the main page.+ 2. Use the CheckLoginAvailability API endpoint. Example response:+ {+ "LoginAvailabilityType": 1,+ "DevErrorMessage": null,+ "Message": null,+ "ErrorNeoPurchaseFailed": false,+ "ErrorLevel": 0,+ "RedirectUrlOrderDetail": null,+ "PaymentAction": null,+ "CanShowFastCheckoutButton": false+ }+ The value of LoginAvailabilityType indicates whether the email is associated with a registered account (1),+ was used for an order but is not associated with an account (2), or neither (0).++ I do not know whether the other fields can have different values; they remained unchanged during testing.+ """+ main_url = "https://www.alza.sk"+ check_login_availability_url = (+ f"{main_url}/Services/EShopService.svc/CheckLoginAvailability"+ )++ headers = {+ "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:150.0) Gecko/20100101 Firefox/150.0",+ "Referer": main_url,+ "Origin": main_url,+ "Accept": "application/json",+ }++ async with httpx.AsyncClient(timeout=15.0, follow_redirects=True) as client:+ # Fetch the main page to retrieve cookies+ response = await client.get(main_url, headers=headers)++ if response.status_code != 200:+ return Result.error(+ f"Failed to access the {main_url}, HTTP {response.status_code}"+ )++ # Send post request to the API+ payload = {"login": email}+ response = await client.post(+ check_login_availability_url, headers=headers, json=payload+ )++ if response.status_code != 200:+ return Result.error(+ f"Failed to retrieve information from API, HTTP {response.status_code}"+ )++ try:+ data = response.json()+ login_availability_type = data.get("LoginAvailabilityType")+ except (ValueError, AttributeError):+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )++ match login_availability_type:+ case 0:+ # Not registered, no orders with this email+ return Result.available(url=main_url)+ case 1:+ # Account with this email exists+ return Result.taken(url=main_url)+ case 2:+ # Orders with this email were created, but the email does not belong to any account+ return Result.taken(+ url=main_url,+ reason="Order was made using this email, but account does not exist.",+ )+ case _:+ return Result.error(+ "Unexpected response structure, please report it via GitHub issues"+ )+++async def validate_alza_sk(email: str) -> Result:+ """+ Checks whether an email is associated with an account or order on alza.sk website.+ """+ return await _check(email)