Function `perform_search` in `cracking.py` is doing too many things
bee-san opened this issue · comments
Autumn (Bee) commented
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