crackerjack icon indicating copy to clipboard operation
crackerjack copied to clipboard

Keeps on running hashcat -I

Open tautology0 opened this issue 2 years ago • 4 comments

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) image

tautology0 avatar Jan 19 '24 15:01 tautology0

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.

tautology0 avatar Mar 11 '24 10:03 tautology0

Hi,

Apologies for the delay, life keeps getting in the way!

Quite a few things to update on here:

  1. This repo is no longer maintained, please raise any future tickets at https://github.com/sadreck/crackerjack
  2. I've put this fix under branch hotfix_profiles_and_more at https://github.com/sadreck/crackerjack/tree/hotfix_profiles_and_more
  3. Please update your origin, pull down the repo, and checkout the hotfix_profiles_and_more branch.
  4. 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

sadreck avatar Mar 13 '24 19:03 sadreck

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!

tautology0 avatar May 14 '24 11:05 tautology0

Just to note, I still can't raise issues in the fork; so will be raising here for now.

tautology0 avatar May 20 '24 08:05 tautology0

Fixed in https://github.com/sadreck/crackerjack/tree/hotfix_profiles_and_more

tautology0 avatar Jul 25 '24 10:07 tautology0