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

Added push func to API fast #71

Merged
merged 3 commits into from
Feb 28, 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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tool.poetry]
name = "search-that-hash"
version = "0.2.0"
version = "0.2.2"
description = "Search hashes quickly before cracking them"
authors = ["brandon <brandon@skerritt.blog>"]
authors = ["brandon <brandon@skerritt.blog>","jayy <jayy2004@gmx.co.uk>"]
license = "GPL-3.0-or-later"

[tool.poetry.dependencies]
Expand Down
8 changes: 4 additions & 4 deletions search_that_hash/cracker/fast_mode_mod/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,17 @@ def fast_crack(self):
printing.Prettifier.error_print("Could not crack hash.", chash)
continue

if self.config["api"]:
self.results.append({chash: result})
continue

for type in types:
types_to_push.append(type["name"])
if len(types_to_push) == 5:
break

self.sth.push(chash, result, types_to_push)

if self.config["api"]:
self.results.append({chash: result})
continue

printing.Prettifier.one_print(chash, result)

return self.results