Skip to content

Commit c65bdd1

Browse files
Merge pull request #285 from kaifcodec/add/user-osint-modules
add: 3 new user_scan modules in social category
2 parents b29f4a5 + f54cecf commit c65bdd1

3 files changed

Lines changed: 48 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_7dach(user):
4+
url = f"https://7dach.ru/profile/{user}"
5+
show_url = url
6+
7+
def process(response):
8+
if "Информация / Профиль" in response.text:
9+
return Result.taken()
10+
11+
if "<title>Ошибка / 7dach.ru" 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)
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_about_me(user):
4+
url = f"https://about.me/{user}"
5+
show_url = url
6+
7+
def process(response):
8+
if " | about.me" in response.text:
9+
return Result.taken()
10+
11+
if "<title>about.me</title>" 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)
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_7cups(user):
4+
url = f"https://www.7cups.com/@{user}"
5+
show_url = url
6+
7+
def process(response):
8+
if "Profile - 7 Cups" in response.text:
9+
return Result.taken()
10+
11+
if "The content you're attempting to access could not be" 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)

0 commit comments

Comments
 (0)