hashview / hashview-old

A web front-end for password cracking and analytics
http://www.hashview.io
GNU General Public License v3.0
620 stars 134 forks source link

Cannot turn off dynamic chunking #460

Open BenKettlewell opened 5 years ago

BenKettlewell commented 5 years ago

I'm trying to get a single-machine going and wanted to turn off dynamic chunking to see if that speeds up cracking. I disabled the option but when watching the logs it is still starting, stopping, and restarting hashcat over and over for each chunk.

I checked the database and found you are just storing a 0 or a 1 in the 'use_dynamic_chunking' column on the 'settings' table. 'chunk_size' also defaults to a 0.

That's fine but I think when you're setting up chunking here the unless @settings.use_dynamic_chunking code will always fail to execute as according to ruby both 0 and 1 are "truthy" (ruby truthfulness).

Later you also set a static fall-back value to 50000 but there isn't any logic to skip it entirely if dynamic chunking is disabled.

BenKettlewell commented 5 years ago

I also checked trying to increase the dynamic chunk value and it seems stuck on 50000.

i128 commented 5 years ago

Thanks for the heads up. Ill have some time to check on this after the holidays.

On Fri, Dec 21, 2018, 10:55 PM BenKettlewell <notifications@github.com wrote:

I also checked trying to increase the dynamic chunk value and it seems stuck on 50000.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hashview/hashview/issues/460#issuecomment-449545305, or mute the thread https://github.com/notifications/unsubscribe-auth/ACTh6xjZkKV9BuBhB_mq_3LfU2b3M1vDks5u7btVgaJpZM4ZfU0J .

BenKettlewell commented 5 years ago

Much appreciated. No rush from my end though. I manually upped the static value to 1000000000 and wow what a difference that makes. Went from 3% in 4 hours to doing the whole keyspace in about 20 minutes.

i128 commented 5 years ago

Okay, I think its resolved in v0.7.5-beta code.