-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6916066
commit a117c26
Showing
15 changed files
with
104 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
from crawler.crawler_instance.local_shared_model.collector_data_model import collector_data_model | ||
from playwright.async_api import async_playwright | ||
from typing import Optional | ||
|
||
from crawler.crawler_instance.local_shared_model.rule_model import FetchProxy | ||
from crawler.crawler_instance.proxies.tor_controller.tor_controller import tor_controller | ||
from crawler.crawler_instance.proxies.tor_controller.tor_enums import TOR_COMMANDS | ||
|
@@ -60,11 +59,15 @@ async def get_email_username(self, query): | |
result = [] | ||
for parser in RUNTIME_PARSE_REQUEST_QUERIES.S_USERNAME: | ||
parse_script = self.on_init_leak_parser(parser) | ||
driver = await self._initialize_webdriver() | ||
query["url"] = parse_script.base_url | ||
response = await parse_script.parse_leak_data(query, driver) | ||
try: | ||
driver = await self._initialize_webdriver() | ||
response = await parse_script.parse_leak_data(query, driver) | ||
if len(response.cards_data)>0: | ||
result.append(response.model_dump()) | ||
except Exception as e: | ||
pass | ||
|
||
result.append(response.model_dump()) | ||
return json.dumps(result) | ||
|
||
def on_init_leak_parser(self, file_name): | ||
|
@@ -86,21 +89,21 @@ def on_init_leak_parser(self, file_name): | |
async def invoke_trigger(self, command, data=None): | ||
if command == RUNTIME_PARSE_REQUEST_COMMANDS.S_PARSE_USERNAME: | ||
return await self.get_email_username(data) | ||
|
||
async def main(): | ||
url = "http://breachdbsztfykg2fdaq2gnqnxfsbj5d35byz3yzj73hazydk4vq72qd.onion/" | ||
email = "[email protected]" | ||
username = "msmannan00" | ||
query = {"url": url, "email": email, "username": username} | ||
|
||
try: | ||
result = await runtime_parse_controller().invoke_trigger(RUNTIME_PARSE_REQUEST_COMMANDS.S_PARSE_USERNAME, query) | ||
print(result) | ||
except Exception as e: | ||
print("Error occurred:", e) | ||
finally: | ||
pass | ||
|
||
|
||
if __name__ == "__main__": | ||
asyncio.run(main()) | ||
# | ||
# async def main(): | ||
# url = "http://breachdbsztfykg2fdaq2gnqnxfsbj5d35byz3yzj73hazydk4vq72qd.onion/" | ||
# email = "[email protected]" | ||
# username = "msmannan00" | ||
# query = {"url": url, "email": email, "username": username} | ||
# | ||
# try: | ||
# result = await runtime_parse_controller().invoke_trigger(RUNTIME_PARSE_REQUEST_COMMANDS.S_PARSE_USERNAME, query) | ||
# print(result) | ||
# except Exception as e: | ||
# print("Error occurred:", e) | ||
# finally: | ||
# pass | ||
# | ||
# | ||
# if __name__ == "__main__": | ||
# asyncio.run(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
http://notbob.i2p/hosts.txt="6b359-62accdb5e9a56-gzip" | ||
http://skank.i2p/hosts.txt=W/"659afedf-13958" | ||
http://i2p-projekt.i2p/hosts.txt="1711378803.42-52907-3078492705" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
http://stats.i2p/hosts.txt=1735910165609 | ||
http://notbob.i2p/hosts.txt=1735910103425 | ||
http://stats.i2p/hosts.txt=1736092338179 | ||
http://notbob.i2p/hosts.txt=1736092307526 | ||
http://inr.i2p/hosts.txt=0 | ||
http://skank.i2p/hosts.txt=1735912167954 | ||
http://i2p-projekt.i2p/hosts.txt=1735915683844 | ||
http://skank.i2p/hosts.txt=1736092332375 | ||
http://i2p-projekt.i2p/hosts.txt=1736092277788 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
http://stats.i2p/hosts.txt=Sat, 14 May 2022 15:34:47 GMT | ||
http://notbob.i2p/hosts.txt=Fri, 03 Jan 2025 13:00:02 GMT | ||
http://notbob.i2p/hosts.txt=Sun, 05 Jan 2025 15:46:34 GMT | ||
http://skank.i2p/hosts.txt=Sun, 07 Jan 2024 19:43:27 GMT | ||
http://i2p-projekt.i2p/hosts.txt=Mon, 25 Mar 2024 15:00:03 GMT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
Jan 3, 2025, 2:37:07 PM WARN [Addressbook ] .naming.BlockfileNamingService: The hosts database was not closed cleanly or is still open by another process | ||
Jan 5, 2025, 3:44:10 PM WARN [Addressbook ] .naming.BlockfileNamingService: The hosts database was not closed cleanly or is still open by another process | ||
Jan 5, 2025, 3:46:13 PM WARN [JobQueue 2/5] networkdb.reseed.ReseedChecker: Very few known peers remaining - reseeding now | ||
Jan 5, 2025, 3:46:24 PM WARN [Reseed ] uter.networkdb.reseed.Reseeder: EepGet failed on https://reseed-pl.i2pd.xyz/i2pseeds.su3?netid=2 : java.lang.Exception: Attempt failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Jan 3, 2025, 2:41:04 PM WARN [Addressbook ] .naming.BlockfileNamingService: The hosts database was not closed cleanly or is still open by another process | ||
Jan 5, 2025, 4:24:01 PM WARN [Addressbook ] .naming.BlockfileNamingService: The hosts database was not closed cleanly or is still open by another process |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1735923370591 | ||
1736094787138 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters