![]() |
Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping - 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: Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping (/thread-13346.html) Pages:
1
2
|
RE: Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping - tha_tux - 08-12-2025 (08-12-2025, 05:12 PM)atom Wrote: Please see in the original post: I was using git commit hash f47c14603631f545ed4e554b0490ce19afe7e3c8 (very recent from this morning) that still produces that error. RE: Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping - atom - 08-12-2025 Tried to reproduce with f47c14603631f545ed4e554b0490ce19afe7e3c8, but it works perfect. Here's a log: Quote:atom@x870:~/hashcat$ git checkout f47c14603631f545ed4e554b0490ce19afe7e3c8 RE: Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping - tha_tux - 08-12-2025 was a user (my) problem, no idea what happened, sorry.. RE: Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping - tha_tux - 08-12-2025 One more question: when running the default Python example (from master, not the changed example from this page) in a Python debugger (or as Python file) the salts are not populated. `calc_hash()` is called but context is empty (as it's not run from hashcat). ``` $ echo -n 'hashcat' | python3 Python/generic_hash_mp.py 578062bebe5d6464de429098aea3b21261a2bd366acc8850066032db1c4d3c67 ``` Where I'd expect `33522b0fd9812aa68586f66dba7c17a8ce64344137f9c7d8b11f32a6921c22de*9348746780603343` as output. Not sure how to proceed, writing a Python function that interprets a hashes.txt file doesn't make too much sense. Furthermore am I correct in thinking https://github.com/hashcat/hashcat/blob/master/docs/hashcat-python-plugin-development-guide.md?plain=1#L98 is out of date as I can't find `def calc_hash(ctx, password, salt_id, is_selftest):` anywhere, I expect it should be `def calc_hash(password: bytes, salt: dict) -> str:` RE: Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping - tha_tux - 08-12-2025 (08-12-2025, 09:08 PM)tha_tux Wrote: One more question: when running the default Python example (from master, not the changed example from this page) in a Python debugger (or as Python file) the salts are not populated. `calc_hash()` is called but context is empty (as it's not run from hashcat). Again sorry, it's described here in the documentation, that there is no salt an you need to provide it yourself: Quote:"Note that you probably want to inline the correct salt value, see the main section in the code. TBD: Add some sample"https://github.com/hashcat/hashcat/blob/master/docs/hashcat-python-plugin-development-guide.md?plain=1#L257 RE: Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping - atom - 08-12-2025 Excellent point. Right now the "hashcat emulation" is not sending the salt used in the ST_HASH, and that is the reason why the result looks different. It was created very early when no salt was involved, so it needs an update. Someone mentioned that they are working on fixing this, but so far I have not received anything from them. Feel free to fix this. RE: Using the Assimilation Bridge (Python Plugin) for Rapid Prototyping - tha_tux - 08-13-2025 See https://github.com/hashcat/hashcat/pull/4408 |