Skip to content

Commit 3261030

Browse files
authored
Merge pull request #303 from kaifcodec/add/user-osint-modules
create: new category `other` in user_scan and add 2 new modules to `user_scan`
2 parents 4c7a20e + bed8516 commit 3261030

3 files changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from user_scanner.core.orchestrator import generic_validate, Result
2+
3+
def validate_zmarsa(user):
4+
url = f"https://zmarsa.com/uzytkownik/{user}"
5+
show_url = url
6+
7+
def process(response):
8+
if "Statystyki" in response.text:
9+
return Result.taken()
10+
11+
if "<title>Error 404 - zMarsa.com<" in response.text:
12+
return Result.available()
13+
14+
return Result.error("Unexpected response body, report it via GitHub issues.")
15+
16+
return generic_validate(url, process, show_url=show_url)

user_scanner/user_scan/other/__init__.py

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from user_scanner.core.orchestrator import status_validate
2+
3+
def validate_zomato(user):
4+
url = f"https://www.zomato.com/{user}/reviews"
5+
show_url = url
6+
7+
headers = {
8+
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0"
9+
}
10+
11+
return status_validate(url, 404, 200, headers=headers, show_url=show_url)

0 commit comments

Comments
 (0)