Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breachdirectory domain change #131

Merged
merged 2 commits into from
Oct 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
| [scylla.so](https://scylla.so/) - Service (free) | Cleartext passwords, hashs and salts, usernames, IPs, domain | :construction: |
| [Dehashed.com](https://dehashed.com/) - Service | Cleartext passwords, hashs and salts, usernames, IPs, domain | :white_check_mark: :key: |
| [IntelX.io](https://intelx.io/signup) - Service (free trial) | Cleartext passwords, hashs and salts, usernames, IPs, domain, Bitcoin Wallets, IBAN | :white_check_mark: :key: |
| :new: [Breachdirectory.tk](https://breachdirectory.tk) - Service (free) | Cleartext passwords, hashs and salts, usernames, domain | :white_check_mark: :key: |
| :new: [Breachdirectory.org](https://breachdirectory.org) - Service (free) | Cleartext passwords, hashs and salts, usernames, domain | :white_check_mark: :key: |

*:key: - API key required*

Expand Down
10 changes: 5 additions & 5 deletions h8mail/utils/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,12 +828,12 @@ def get_dehashed(self, api_email, api_key, user_query):

def get_breachdirectory(self, user, passw, user_query):
# Todo: implement password source search when email has answer
c.info_news("[" + self.target + "]>[breachdirectory.tk]")
c.info_news("[" + self.target + "]>[breachdirectory.org]")
if user_query not in ["email", "username", "password", "domain"]:
c.bad_news("Breachdirectory does not support this option")
exit(1)
mode = "pastes"
url = "https://breachdirectory.tk/api/index?username={user}&password={passw}&func={mode}&term={target}".format(user=user, passw=passw, mode=mode, target=self.target)
url = "https://breachdirectory.org/api/index?username={user}&password={passw}&func={mode}&term={target}".format(user=user, passw=passw, mode=mode, target=self.target)
try:
req = self.make_request(
url, timeout=60
Expand All @@ -852,7 +852,7 @@ def get_breachdirectory(self, user, passw, user_query):
self.data.append(("BREACHDR_SOURCE", result["source"]))
self.pwned += 1
# Follow up with an aggregated leak sources query
url_src = "https://breachdirectory.tk/api/index?username={user}&password={passw}&func={mode}&term={target}".format(user=user, passw=passw, mode="sources", target=self.target)
url_src = "https://breachdirectory.org/api/index?username={user}&password={passw}&func={mode}&term={target}".format(user=user, passw=passw, mode="sources", target=self.target)
req = self.make_request(
url_src, timeout=60
)
Expand All @@ -863,7 +863,7 @@ def get_breachdirectory(self, user, passw, user_query):
self.data.append(("BREACHDR_EXTSRC", result))
## If using the 'auto' mode instead of pastes
# c.good_news(
# "Found {num} entries for {target} using breachdirectory.tk".format(
# "Found {num} entries for {target} using breachdirectory.org".format(
# num=str(response["found"]), target=self.target
# )
# )
Expand All @@ -882,4 +882,4 @@ def get_breachdirectory(self, user, passw, user_query):
# self.pwned += 1
except Exception as ex:
c.bad_news(f"Breachdirectory error with {self.target}")
print(ex)
print(ex)