forked from WHS-Killer-Whale/Echo-Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
599 lines (511 loc) · 17.9 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
import requests
import json
from bs4 import BeautifulSoup
from urllib.parse import urlencode, urljoin
import time
import re
# UI 관련 내용입니다.
from pyfiglet import Figlet
from clint.textui import colored
f = Figlet(font="slant")
print(
colored.white(
"---------------------------------------------------------------------------"
)
)
print(f.renderText("Echo- Tracker"))
print(
colored.white(
"----------------------------------------------------------KILLER WHALE _whs"
)
)
proxies = {"http": "socks5h://localhost:9050", "https": "socks5h://localhost:9050"}
# 전역 변수와 공톰 함수 입니다.
headers = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
"Accept-Encoding": "gzip, deflate, br",
"Accept-Language": "ko-KR,ko;q=0.9",
"Cache-Control": "max-age=0",
"Sec-Ch-Ua": '"Chromium";v="118", "Google Chrome";v="118", "Not=A?Brand";v="99"',
"Sec-Ch-Ua-Mobile": "?0",
"Sec-Ch-Ua-Platform": '"macOS"',
"Sec-Fetch-Dest": "document",
"Sec-Fetch-Mode": "navigate",
"Sec-Fetch-Site": "none",
"Sec-Fetch-User": "?1",
"Upgrade-Insecure-Requests": "1",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36",
}
forum = []
errorForum = []
# 진행 바 관련 내용입니다.
from tqdm import tqdm
def progress_bar(desc= "Progress", total=None, ncols=75):
return tqdm(desc=desc, total=total, ncols=ncols)
def userStatus(Bool, name):
if Bool:
forum.append(name)
def notSearch(name):
errorForum.append(name)
# 여기서 부터 작성하세요
def breachForums(user):
name = "breachForums"
url = "http://breachedu76kdyavc6szj6ppbplfqoz3pgrk3zw57my4vybgblpfeayd.onion"
try:
response = requests.get(url, headers=headers, proxies=proxies)
cookies = response.cookies
url = "http://breachedu76kdyavc6szj6ppbplfqoz3pgrk3zw57my4vybgblpfeayd.onion/User-"
userUrl = url + user
response = requests.get(
userUrl, headers=headers, proxies=proxies, cookies=cookies
)
if response.text.find("The member you specified is either") == -1:
userStatus(True, name)
except Exception as e:
notSearch(name)
def _0Day(user):
url = "https://0day.red/"
name = "0Day"
userUrl = url + "User-" + user
try:
response = requests.get(userUrl, headers=headers)
if response.status_code == 200:
userStatus(True, name)
except:
notSearch(name)
def _0x00sec(user):
url = "https://0x00sec.org/"
name = "0x00sec"
userUrl = url + "u/" + user
try:
response = requests.get(userUrl, headers=headers)
if response.status_code == 200:
userStatus(True, name)
except:
notSearch(name)
def _1877(user):
url = "https://1877.to/forums/search/"
name = "1877"
paylaod = {
"keywords": "",
"c[users]": user,
"c[newer_than]": "",
"c[older_than]": "",
"order": "date",
"search_type": "",
}
try:
response = requests.get(url, headers=headers)
cookies = response.cookies
soup = BeautifulSoup(response.text, "html.parser")
body = soup.body
form = body.find("form")
find_token = form.find("input", {"name": "_xfToken"})
token = find_token["value"]
paylaod["_xfToken"] = token
response = requests.post(
url + "search", headers=headers, data=paylaod, cookies=cookies
)
soup = BeautifulSoup(response.text, "html.parser")
body = soup.body
if body and "data-template" in body.attrs:
data_template_value = body["data-template"]
if data_template_value == "search_results":
find_user_id = body.find("a", class_="username")
user_id = find_user_id.get("data-user-id")
userStatus(True, name + f"(userID: {user_id})")
elif data_template_value == "error":
userStatus(False, name)
except:
notSearch(name)
def wasm(user):
url = "https://wasm.in/index.php?members/find"
name = "Wasm.in"
payload = {
"q": user,
"_xfRequestUri": "/",
"_xfNoRedirect": 1,
"_xfResponseType": "json",
}
try:
response = requests.post(url, data=payload, headers=headers)
if response.status_code == 200 and user in response.json().get("results", {}):
userStatus(True, name)
except Exception as e:
notSearch(name)
def redSecurity(user):
url = "https://redsecurity.info/cc/xmlhttp.php?action=get_users"
name = "RedSecurity"
timestamp = int(time.time() * 1000)
payload = {"query": user, "_": timestamp}
try:
response = requests.post(url, data=payload, headers=headers)
if response.status_code == 200:
result = response.json()
if result and user == result[0].get("id"):
userid = result[0].get("uid")
userStatus(True, name + f"(userID: {userid})")
except Exception as e:
notSearch(name)
def ramble(user):
name = "ramble"
url = (
"http://rambleeeqrhty6s5jgefdfdtc6tfgg4jj6svr4jpgk4wjtg3qshwbaad.onion/user/"
+ user
)
try:
response = requests.get(url, proxies=proxies)
if response.status_code == 200:
userStatus(True, name)
else:
pass
except:
notSearch(name)
def R0CREW(user):
url = "https://forum.reverse4you.org/"
name = "R0CREW"
userUrl = url + "u/" + user + "/summary"
try:
response = requests.get(userUrl, headers=headers)
if response.status_code == 200:
userStatus(True, name)
except:
notSearch(name)
def hack5(user):
url = "https://forums.hak5.org/search/?&q="
name = "hack5"
userUrl = url + user + "&type=core_members&quick=1&joinedDate=any&group[10]=1"
try:
response = requests.get(userUrl, headers=headers)
soup = BeautifulSoup(response.text, "html.parser")
if "Found 0 results" not in soup.text:
userStatus(True, name)
except:
notSearch(name)
def rootme(user):
url = "https://www.root-me.org/"
name = "rootme"
userUrl = url + user
try:
response = requests.get(userUrl, headers=headers)
if response.status_code == 304:
userStatus(True, name)
except:
notSearch(name)
def hostingforums(user):
url = "https://hostingforums.net/u/"
name = "hostingforums"
userUrl = url + user
try:
response = requests.get(userUrl, headers=headers)
if response.status_code == 200:
userStatus(True, name)
except:
notSearch(name)
def megatop(user):
url = "https://megatop.biz/forum/"
name = "megatop"
try:
response = requests.get(url, headers=headers)
cookies = response.cookies
html = response.text
soup = BeautifulSoup(html, "html.parser")
element = soup.find(id="XF")
data_csrf = element["data-csrf"]
url = (
"https://megatop.biz/index.php?members/find&&_xfRequestUri=%2Fforum%2F&_xfWithData=1&_xfToken="
+ data_csrf
+ "&_xfResponseType=json&q="
+ user
)
response = requests.get(url, headers=headers, cookies=cookies)
json_data = response.json()
for item in json_data["results"]:
id_value = item["id"]
if id_value.lower() == user.lower():
userStatus(True, name)
except Exception as e:
notSearch(name)
def dark2web(user):
url = "https://web-1.gate2dark.online/"
name = "dark2web"
try:
response = requests.get(url)
cookies = response.cookies
html = response.text
soup = BeautifulSoup(html, "html.parser")
element = soup.find(id="XF")
data_csrf = element["data-csrf"]
url = (
"https://web-1.gate2dark.online/index.php?members/find&_xfRequestUri=%2Fmembers%2F&_xfWithData=1&_xfResponseType=json&_xfToken="
+ data_csrf
+ "&q="
+ user
)
response = requests.post(url, cookies=cookies)
json_data = response.json()
for item in json_data["results"]:
id_value = item["id"]
if id_value.lower() == user.lower():
userID = item["iconHtml"].split('data-user-id="')[1].split('"')[0]
userStatus(True, f"{name}(userID: {userID})")
except Exception as e:
notSearch(name)
def bdfClub(user):
url = "https://bdfclub.com"
name = "BDF CLUB"
try:
response = requests.get(url)
cookies = response.cookies
html = response.text
soup = BeautifulSoup(html, "html.parser")
element = soup.find(id="XF")
data_csrf = element["data-csrf"]
url = (
"https://bdfclub.com/index.php?members/find&_xfRequestUri=%2Fmembers%2F&_xfWithData=1&_xfResponseType=json&_xfToken="
+ data_csrf
+ "&q="
+ user
)
response = requests.post(url, cookies=cookies)
json_data = response.json()
for result in json_data['results']:
icon_html = result.get('iconHtml', '')
user_id_start = icon_html.find('data-user-id="') + len('data-user-id="')
user_id_end = icon_html.find('"', user_id_start)
user_id = icon_html[user_id_start:user_id_end]
user_name_start = icon_html.find('title="') + len('title="')
user_name_end = icon_html.find('"', user_name_start)
user_name = icon_html[user_name_start:user_name_end]
userStatus(True, name + f" (userID: {user_id})")
except Exception as e:
notSearch(name)
def infectedZone(user):
url = "https://infected-zone.com"
name = "infected-zone"
try:
response = requests.get(url)
cookies = response.cookies
html = response.text
soup = BeautifulSoup(html, "html.parser")
element = soup.find(id="XF")
data_csrf = element["data-csrf"]
url = (
"https://infected-zone.com/index.php?members/find&&_xfRequestUri=%2Fforum%2F&_xfWithData=1&_xfToken="
+ data_csrf
+ "&_xfResponseType=json&q="
+ user
)
response = requests.get(url, cookies=cookies)
json_data = response.json()
for item in json_data.get("results", []):
id_value = item.get("id", "").lower()
text = item.get("text")
icon_html = item.get("iconHtml", "")
if id_value == user.lower():
# Process 'iconHtml' directly within the main loop
avatar_span = BeautifulSoup(icon_html, "html.parser").find(
"span", class_="avatar--xxs"
)
data_user_id = avatar_span.get("data-user-id")
userStatus(True, name + f"(userID: {data_user_id})")
return
except Exception as e:
notSearch(name)
def Wjunction(user):
url = "https://www.wjunction.com/"
name = "Wjunction"
try:
response = requests.get(url)
cookies = response.cookies
html = response.text
soup = BeautifulSoup(html, "html.parser")
element = soup.find(id="XF")
data_csrf = element["data-csrf"]
url = (
"https://www.wjunction.com/index.php?members/find&_xfRequestUri=%2Fmembers%2F&_xfWithData=1&_xfResponseType=json&_xfToken="
+ data_csrf
+ "&q="
+ user
)
response = requests.post(url, cookies=cookies)
json_data = response.json()
for item in json_data["results"]:
id_value = item["id"]
if id_value.lower() == user.lower():
userStatus(True, name)
except Exception as e:
notSearch(name)
def landzdown(user):
url = "https://www.landzdown.com/index.php?action=mlist;sa=search"
name = "landzdown"
payload = {"search": user, "fields[]": "name", "submit": "Search"}
try:
response = requests.post(url, headers=headers, data=payload)
response.raise_for_status()
soup = BeautifulSoup(response.text, "html.parser")
rows = soup.find_all("td", class_="real_name lefttext")
found = any(row.get_text(strip=True) == user for row in rows)
if found:
user_link = soup.find("a", title=f"View the profile of {user}")
if user_link:
user_url = user_link["href"]
user_id = user_url.split("=")[-1]
userStatus(True, name + f"(userID: {user_id})")
except Exception as e:
print(e)
notSearch(name)
def bhcforums(user):
url = "https://bhcforums.cc/xmlhttp.php"
name = "bhcforums.cc"
query_params = {
"action": "get_users",
"query": user,
}
local_headers = headers.copy()
del local_headers["Accept-Encoding"]
query_string = urlencode(query_params)
full_url = f"{url}?{query_string}"
response = requests.get(full_url, headers=local_headers)
try:
json_data = response.json()
found = any(
"id" in user_info and user_info["id"] == f"{user}"
for user_info in json_data
)
if found:
userStatus(True, name)
except:
notSearch(name)
def enclavecc(user):
query_params = {
"q": user,
"type": "core_members",
"joinedDate": "any",
"group[4]": "1",
"group[19]": "1",
"group[9]": "1",
"group[12]": "1",
"group[22]": "1",
"group[6]": "1",
"group[3]": "1",
"group[7]": "1",
"group[18]": "1",
"group[23]": "1",
"group[20]": "1",
"group[21]": "1",
"group[14]": "1",
"group[15]": "1",
"group[16]": "1",
"group[10]": "1",
}
url = "https://www.enclave.cc/index.php"
name = "enclave.cc"
query_string = urlencode(query_params)
userUrl = f"{url}?/search/&{query_string}"
try:
response = requests.get(userUrl, headers=headers)
if (
"There were no results for your search. Try broadening your criteria or choosing a different content area."
in response.text
):
pass
elif response.status_code == 200:
if (f"Go to {user}'s profile") in response.text:
soup = BeautifulSoup(response.text, "html.parser")
a_tags = soup.find_all("a", href=True)
for a_tag in a_tags:
href_value = a_tag["href"]
match = re.search(r"/profile/(\d+)-\w+/", href_value)
if match:
userid = match.group(1)
break
userStatus(True, name + f"(userID: {userid})")
except:
notSearch(name)
time.sleep(2)
def nullbb(user):
url = "https://nulledbb.com/xmlhttp.php"
name = "NulledBB"
query_params = {
"action": "get_users",
"query": user,
}
local_headers = headers.copy()
del local_headers["Accept-Encoding"]
query_string = urlencode(query_params)
full_url = f"{url}?{query_string}"
response = requests.get(full_url, headers=local_headers)
try:
json_data = response.json()
found = any(
"id" in user_info and user_info["id"] == f"{user}"
for user_info in json_data
)
if found:
user_id = json_data[0]["uid"]
userStatus(True, name + f"(userID: {user_id})")
except:
notSearch(name)
def wilderssecurity(user):
url = "https://www.wilderssecurity.com/search/search"
name = "wilderssecurity"
payload = {"keywords": "", "users": user, "date": "", "_xfToken": ""}
try:
response = requests.post(url, headers=headers, data=payload)
if 'The following members could not be found' not in response.text:
match = re.search(r'href="members/(.*?)\.(\d+)/"', response.text)
if match:
user_name = match.group(1)
user_id = match.group(2)
userStatus(True, name + f"(userID: {user_id})")
except:
notSearch(name)
if __name__ == "__main__":
while True:
user = input(colored.blue("USER NAME: "))
if user == 'S' or user == 's':
print(colored.white("==========================================================KILLER WHALE _whs"))
exit(1)
# _0Day(user)
# _0x00sec(user)
# _1877(user)
# wasm(user)
# redSecurity(user)
# ramble(user)
# R0CREW(user)
# hack5(user)
# rootme(user)
# megatop(user)
# dark2web(user)
# bdfClub(user)
# infectedZone(user)
# Wjunction(user)
# bhcforums(user)
# enclavecc(user)
# nullbb(user)
# hostingforums(user)
# landzdown(user)
# wilderssecurity(user)
# breachForums(user)
functions = [_0Day, _0x00sec, _1877, wasm, redSecurity, ramble, R0CREW, hack5, rootme, megatop, dark2web, bdfClub, infectedZone, Wjunction, bhcforums, enclavecc, nullbb, hostingforums, landzdown, wilderssecurity, breachForums]
total_functions = len(functions)
with progress_bar(total=total_functions) as pbar:
for function in functions:
function(user)
pbar.update(1)
print(colored.green("\n>>> DETECTED: "))
for i in forum:
print("\t" + i)
print(colored.red("\n>>> unknown: ", errorForum))
for i in errorForum:
print("\t" + i)
print("\n")
print(
colored.white(
"----------------------------------------------PRESS 'S' if you want to stop"
)
)
# clear list
forum.clear()
errorForum.clear()