Skip to content

Commit a64e39e

Browse files
authored
Merge pull request #231 from kaifcodec/add/user-osint-modules
add: 12 new modules in user_scan with new category: adult/
2 parents 33c9c27 + fd12cc1 commit a64e39e

13 files changed

Lines changed: 283 additions & 0 deletions

File tree

user_scanner/user_scan/adult/__init__.py

Whitespace-only changes.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from user_scanner.core.orchestrator import generic_validate, Result
2+
from user_scanner.core.helpers import get_random_user_agent
3+
4+
def validate_admireme_vip(user):
5+
url = f"https://admireme.vip/{user}/"
6+
show_url = "https://admireme.vip"
7+
8+
headers = {
9+
'User-Agent': get_random_user_agent(),
10+
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
11+
}
12+
13+
def process(response):
14+
if "creator-stat subscriber" in response.text:
15+
return Result.taken()
16+
17+
if response.status_code == 404 or "<title>Page Not Found |" in response.text:
18+
return Result.available()
19+
20+
return Result.error(f"Unexpected status: {response.status_code}")
21+
22+
return generic_validate(url, process, show_url=show_url, headers=headers)
23+
24+
25+
if __name__ == "__main__":
26+
user = input("Username?: ").strip()
27+
result = validate_admireme_vip(user)
28+
29+
if result == 1:
30+
print("Available!")
31+
elif result == 0:
32+
print("Unavailable!")
33+
else:
34+
print("Error occurred!")
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
from user_scanner.core.orchestrator import generic_validate, Result
2+
from user_scanner.core.helpers import get_random_user_agent
3+
4+
def validate_adultforum(user):
5+
url = f"https://adultforum.gr/{user}-glamour-escorts/"
6+
show_url = "https://adultforum.gr"
7+
8+
headers = {
9+
'User-Agent': get_random_user_agent(),
10+
'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
11+
}
12+
13+
def process(response):
14+
if "Glamour Escorts " in response.text:
15+
return Result.taken()
16+
17+
if response.status_code == 404 or "Page not found - Adult Forum Gr" in response.text:
18+
return Result.available()
19+
20+
return Result.error(f"Unexpected status: {response.status_code}")
21+
22+
return generic_validate(url, process, show_url=show_url, headers=headers)
23+
24+
25+
if __name__ == "__main__":
26+
user = input("Username?: ").strip()
27+
result = validate_adultforum(user)
28+
29+
if result == 1:
30+
print("Available!")
31+
elif result == 0:
32+
print("Unavailable!")
33+
else:
34+
print("Error occurred!")
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
from user_scanner.core.orchestrator import status_validate
2+
3+
def validate_adultism(user):
4+
url = f"https://www.adultism.com/profile/{user}"
5+
show_url = "https://www.adultism.com"
6+
7+
return status_validate(url, 404, 200, show_url=show_url)
8+
9+
10+
if __name__ == "__main__":
11+
user = input("Username?: ").strip()
12+
result = validate_adultism(user)
13+
14+
if result == 1:
15+
print("Available!")
16+
elif result == 0:
17+
print("Unavailable!")
18+
else:
19+
print("Error occurred!")
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from user_scanner.core.orchestrator import generic_validate, Result
2+
3+
4+
def validate_archwiki(user):
5+
url = f"https://wiki.archlinux.org/api.php?action=query&format=json&list=users&ususers={user}&usprop=cancreate&formatversion=2"
6+
show_url = "https://wiki.archlinux.org"
7+
8+
def process(response):
9+
if "\"userid\":" in response.text:
10+
return Result.taken()
11+
if "\"missing\":true" in response.text:
12+
return Result.available()
13+
return Result.error(f"Unexpected status: {response.status_code}")
14+
15+
return generic_validate(url, process, show_url=show_url)
16+
17+
18+
if __name__ == "__main__":
19+
user = input("Username?: ").strip()
20+
result = validate_archwiki(user)
21+
22+
if result == 1:
23+
print("Available!")
24+
elif result == 0:
25+
print("Unavailable!")
26+
else:
27+
print("Error occurred!")
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from user_scanner.core.orchestrator import status_validate
2+
3+
def validate_ameblo(user):
4+
url = f"https://ameblo.jp/{user}"
5+
show_url = "https://ameblo.jp"
6+
7+
return status_validate(url, 404, 200, show_url=show_url, follow_redirects=True)
8+
9+
10+
if __name__ == "__main__":
11+
user = input("Username?: ").strip()
12+
result = validate_ameblo(user)
13+
14+
if result == 1:
15+
print("Available!")
16+
elif result == 0:
17+
print("Unavailable!")
18+
else:
19+
print("Error occurred!")
20+
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from user_scanner.core.orchestrator import status_validate
2+
3+
def validate_arduino(user):
4+
url = f"https://forum.arduino.cc/u/{user}.json"
5+
show_url = "https://arduino.cc"
6+
7+
return status_validate(url, 404, 200, show_url=show_url)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from user_scanner.core.orchestrator import status_validate
2+
3+
def validate_asciinema(user):
4+
url = f"https://asciinema.org/~{user}"
5+
show_url = "https://asciinema.org"
6+
7+
return status_validate(url, 404, 200, show_url=show_url)
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
from user_scanner.core.orchestrator import status_validate
2+
3+
4+
def validate_apexlegends(user):
5+
url = f"https://api.tracker.gg/api/v2/apex/standard/profile/origin/{user}"
6+
show_url = "https://apexlegends.com"
7+
8+
headers = {
9+
"Accept-Language": "en-US,en;q=0.5",
10+
"Origin": "https://apex.tracker.gg",
11+
"Referer": "https://apex.tracker.gg/",
12+
"User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0"
13+
}
14+
15+
return status_validate(url, 404, 200, show_url=show_url, headers=headers)
16+
17+
18+
if __name__ == "__main__":
19+
user = input("Username?: ").strip()
20+
result = validate_apexlegends(user)
21+
22+
if result == 1:
23+
print("Available!")
24+
elif result == 0:
25+
print("Unavailable!")
26+
else:
27+
print("Error occurred!")
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
from user_scanner.core.orchestrator import status_validate
2+
3+
def validate_airliners(user):
4+
url = f"https://www.airliners.net/user/{user}/profile"
5+
show_url = "https://www.airliners.net"
6+
7+
return status_validate(url, 404, 200, show_url=show_url)
8+
9+
10+
if __name__ == "__main__":
11+
user = input("Username?: ").strip()
12+
result = validate_airliners(user)
13+
14+
if result == 1:
15+
print("Available!")
16+
elif result == 0:
17+
print("Unavailable!")
18+
else:
19+
print("Error occurred!")
20+

0 commit comments

Comments
 (0)