![]() |
Md5+ pair sum + base62 best approach to custom mode - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Developer (https://hashcat.net/forum/forum-39.html) +--- Forum: hashcat (https://hashcat.net/forum/forum-40.html) +--- Thread: Md5+ pair sum + base62 best approach to custom mode (/thread-13348.html) |
Md5+ pair sum + base62 best approach to custom mode - Sasquatch - 08-14-2025 Hi I have a CCTV camera I got myself locked out of. I managed to get the stored hash and password check algorithm out thanks to power of ghira and chatgpt. It is standard MD5 followed by pair sum and base62 conversion to 8 character hash. I have opencl kernel and host code that run 360MH/s on p400. And only 5300MH/s on rtx3070. I'm thinking, since hashcat hits ~40GH/s on 3070 can I add extra steps for my use case to existing module and how much will it slow down? Or should I just get vast.ai instance with 4090? And pay for the 2 weeks it would take at 6GH/s? Here is revelant opencl rernel section: Code: that fixed it put my hasrate dropped from 5130 to 5100Mh/s what are sane values of local and -D STEPS_PER_THREAD for rtx3070 P.s I cannot change salt for known one, as I'm getting CRC error on boot and I can't find where it's stored(possibly in protected CPU memory) And yes I realised(now) that I can gain some speed by calculating salt indices on in host code and comparing integers in kernel cutting out char conversion. RE: Md5+ pair sum + base62 best approach to custom mode - Sasquatch - 08-14-2025 m24900 seems to be closest but not finding abc12 from D1H3aIcP, differen algo, obviously, but afaik only mode using "compatible" hash. hits 480MH/s on p400 RE: Md5+ pair sum + base62 best approach to custom mode - Sasquatch - 08-14-2025 i foound the difference! my camera's firmwre does: Code: LDRB r0, [digest, #X] ; load byteA m24900 skips masking to 8 bit value before %62 without masking abc12 hash is D1P3aIkX simple fix, thanks hashcat team ![]() P.s it's not dahua camera so I can't claim this is m24900 bug... RE: Md5+ pair sum + base62 best approach to custom mode - atom - 08-14-2025 This could be interesting from forensic perspective. Would you like to share the details? Like Vendor/Model and the algorithm difference to 24900. Then we could make this a real hash mode for hashcat. Maybe you can generate a hash on that device with password "hashcat" so we can use this as a self-test. RE: Md5+ pair sum + base62 best approach to custom mode - Sasquatch - 08-14-2025 (Yesterday, 11:54 AM)atom Wrote: This could be interesting from forensic perspective. Would you like to share the details? Like Vendor/Model and the algorithm difference to 24900. Then we could make this a real hash mode for hashcat. Maybe you can generate a hash on that device with password "hashcat" so we can use this as a self-test. Only difference I found is the masking. Camera is Besder AliExpress special, using xmey firmware. The hash in question is U-Boot pre Linux Kernel load password. So technically that is U-Boot 4.something hash, not necessarily Besder/xmey specific I tried skipping password verification by replacing funcion call with r0 load - CRC error on boot Same for injected hash. But CRC compare function grabs it from address before mapped firmware area... RE: Md5+ pair sum + base62 best approach to custom mode - atom - 08-14-2025 If you can provide a proof of concept in any language and a description of how to extract the required key material (or a extraction tool), I can turn this into a real hash mode and you will get the best performance. RE: Md5+ pair sum + base62 best approach to custom mode - Sasquatch - 08-14-2025 (Yesterday, 04:37 PM)atom Wrote: If you can provide a proof of concept in any language and a description of how to extract the required key material (or a extraction tool), I can turn this into a real hash mode and you will get the best performance. All this needed to work with my camera's hashing is changing this: Code: a0 = (((a >> 0) & 0xff) + ((a >> 8) & 0xff)) % 62; To this: Code: a0 = ((((a >> 0) & 0xff) + ((a >> 8) & 0xff)) & 0xFF)% 62; In m24900_ax-optimized.cl Subject to testing, whi will commit as soon as I get home from work. RE: Md5+ pair sum + base62 best approach to custom mode - Sasquatch - 08-14-2025 i cooked up module 24901 from 24900 tested hashes generated with mask.py (attached too) both are hitting 740MH/s on p400, |