Skip to content

Commit 71d89be

Browse files
authored
Weakpass integration (#210)
* create Weakpass class * add Weakpass to searchers_online list
1 parent 70e148a commit 71d89be

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

search_that_hash/cracker/cracking.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def __init__(self, config):
2929
online.md5_addr(),
3030
online.md5_grom(),
3131
online.sha1_grom(),
32+
online.Weakpass()
3233
]
3334

3435
def main(self, chash, types) -> dict:

search_that_hash/cracker/online_mod/online.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,3 +312,13 @@ def crack(self, config):
312312
return "".join(out.split("</b> is <b>")[1]).split("</b><br>")[0]
313313
except Exception:
314314
return "Failed"
315+
316+
class Weakpass:
317+
supports = set(["md5", "ntlm", "sha1", "sha-256"])
318+
def crack(self, config):
319+
try:
320+
headers = {"accept: application/json"}
321+
out = requests.get(f"https://weakpass.com/api/v1/search/{config['chash']}.json", headers=headers)
322+
return out.json().get("pass")
323+
except Exception:
324+
return "Failed"

0 commit comments

Comments
 (0)