Keeps on running hashcat -I
We're having a problem where it keeps on running hashcat -I in the background; which leads to them erroring that hashcat is already running and the device profiles being unset which causes them not to be used on a run.
I'm not certain why hashcat is trying to enumerate the device profiles all the time, IMO it should only really try this when it first started crackerjack. If it can't enumerate the device profiles it should follow what's in the database.
Example image off the hashcat -I sessions (I enabled debug out for them)
It looks like this is also causing crackerjack to respond slowly, causing gunicorn to time out and a 502 to be returned. I had to increase the gunicorn timeout to 900 to even get stuff to respond.
Hi,
Apologies for the delay, life keeps getting in the way!
Quite a few things to update on here:
- This repo is no longer maintained, please raise any future tickets at https://github.com/sadreck/crackerjack
- I've put this fix under branch
hotfix_profiles_and_moreat https://github.com/sadreck/crackerjack/tree/hotfix_profiles_and_more - Please update your origin, pull down the repo, and checkout the
hotfix_profiles_and_morebranch. - You'll need to restart the crackerjack service for the changes to take effect.
The way I fixed this was to run the device detection only when the admin is visiting the system config page to define profiles. In all other cases (because the manager class is passed around quite a lot), it will load the detected devices from the database. When you refresh the code, it will "force" the device detection when it doesn't find it in the database, and will start using that output from that point onwards (this will happen once).
Let me know if it worked.
Thanks, Pavel
I added the issue here as I could add it in your fork at the time. I will raise in the fork in future! Thanks for looking in to it!
Just to note, I still can't raise issues in the fork; so will be raising here for now.
Fixed in https://github.com/sadreck/crackerjack/tree/hotfix_profiles_and_more