Skip to content

Commit

Permalink
leaklookup add many fields
Browse files Browse the repository at this point in the history
  • Loading branch information
khast3x committed Jan 24, 2020
1 parent 1fc1fcd commit 0fe769d
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 6 deletions.
39 changes: 35 additions & 4 deletions h8mail/utils/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,14 +572,34 @@ def get_leaklookup_priv(self, api_key, user_query):
if "ipaddress" in d.keys():
self.pwned += 1
self.data.append(("LKLP_LASTIP", d["ipaddress"]))
for tag in ["address", "address1", "address2", "country", "zip", "zipcode", "postcode", "state"]:
for tag in [
"address",
"address1",
"address2",
"country",
"zip",
"zipcode",
"postcode",
"state",
]:
if tag in d.keys():
self.pwned += 1
self.data.append(("LKLP_GEO", d[tag] + " (" + tag + ")"))
for tag in ["firstname", "middlename", "lastname", "mobile", "number", "userid"]:
self.data.append(
("LKLP_GEO", d[tag] + " (type: " + tag + ")")
)
for tag in [
"firstname",
"middlename",
"lastname",
"mobile",
"number",
"userid",
]:
if tag in d.keys():
self.pwned += 1
self.data.append(("LKLP_ID", d[tag] + " (" + tag + ")"))
self.data.append(
("LKLP_ID", d[tag] + " (type: " + tag + ")")
)
if self.not_exists(db):
self.data.append(("LKLP_SOURCE", db))

Expand Down Expand Up @@ -730,6 +750,17 @@ def get_dehashed(self, api_email, api_key, user_query):
):
self.data.append(("DHASHD_HASH", result["hashed_password"]))
self.pwned += 1
for tag in ["name", "vin", "address", "phone"]:
if (
tag in result
and result[tag] is not None
and len(result[tag].strip()) > 0
):
self.data.append(
("DHASHD_ID", result[tag] + " (type: " + tag + ")")
)
self.pwned += 1

if "obtained_from" in result and self.not_exists(
result["obtained_from"]
):
Expand Down
4 changes: 2 additions & 2 deletions h8mail/utils/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def print_result(target, data, source):
colors.reset,
)
)

elif "HASH" in source:
# Underscore to avoid coloring like a HASH
elif "_HASH" in source:
print(
"{}{:15}{}|{}{:>25.25}{} > {}{}{}".format(
colors.fg.lightblue,
Expand Down

0 comments on commit 0fe769d

Please sign in to comment.