HashPals / Search-That-Hash

🔎Searches Hash APIs to crack your hash quickly🔎 If hash is not found, automatically pipes into HashCat⚡

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Function `perform_search` in `cracking.py` is doing too many things

bee-san opened this issue · comments

The function is:

  • Running STH
  • Printing the output or appending it to greppable
  • Running all other APIs
  • printing the output or appending to greppable

It should look like this (imo):

  • Multi-thread called STH (note: store all found hashes for printing + greppable in one variable), if not greppable and if not all hashes to search have not been found in STH return to main()
  • In main print all that's found so far
  • multi-thread run all other APIs (a 2nd time).
  • Return to main with the one output variable
  • Either call Greppable or pretty print it depending on user args