7z2hashcat - Printable Version +- hashcat Forum (https://hashcat.net/forum) +-- Forum: Misc (https://hashcat.net/forum/forum-15.html) +--- Forum: User Contributions (https://hashcat.net/forum/forum-25.html) +--- Thread: 7z2hashcat (/thread-4328.html) |
RE: 7z2hashcat - marpolo - 02-22-2017 Hi! Thank you! Excellent work! Here is results of 0.9 version on my fileset (16 files): 14/16 - are ok! Wrong hashes and this error are gone! Wonderful! Code: Wide character in Compress::Raw::Lzma::Decoder::code input parameter at script/7z2hashcat.pl line 585. 2/16 - These files still has similar error: Code: WARNING: the file 'qwerty.7z' unfortunately can't be used with hashcat since the data length One of these files has ~250MB size with around 8k archived files. Another has ~500MB size with 500 archived files. SIZE value is very close to whole archive size (less on 500kB in 1st case and on 8kB in 2nd case). p.s. one of these files shows same error with 0.4 and up to 0.9 version another file shows this output: Code: 7z2hashcat-0.4.exe qwerty.7z Thanks! RE: 7z2hashcat - philsmd - 02-22-2017 Thanks for the feedback. So if I understood you correctly everything works correctly now. The only "problem" you did experience in very rare situation is a very high upper limit in file size (8KiB compressed data). This seems to be a sane value and if the data was compressible and of average file size that limit should never be reached. Anyway, an advanced user should be able to increase that limit to a higher value (higher than the current 8KiB value) by just increasing these values with a small source code fix (at his/her own risk, the risk is that it might use much more RAM depeding on the value he/she chooses). Modify the parsing function in src/interface.c: Code: https://github.com/hashcat/hashcat/blob/922fea7616255b3cc3603cebd5f3c0bb00654668/src/interface.c#L11394 Code: https://github.com/hashcat/hashcat/blob/922fea7616255b3cc3603cebd5f3c0bb00654668/src/interface.c#L14325 Code: https://github.com/hashcat/hashcat/blob/922fea7616255b3cc3603cebd5f3c0bb00654668/include/interface.h#L1104 Thanks RE: 7z2hashcat - gaidzak - 10-17-2017 (02-22-2017, 05:49 PM)philsmd Wrote: Thanks for the feedback. Not to bring about an ancient thread out of existence, but any luck in getting large files in being decrypted? Meaning I have a 92 megabyte file, when I check the contents of the file, it's 810 megabytes uncompressed. The unfortunate error I receive is $ ./7z2hashcat.pl QUEEN.7z WARNING: the file 'QUEEN.7z' unfortunately can't be used with hashcat since the data length in this particular case is too long (92450992 of the maximum allowed 327528 bytes). Or am I doing something wrong? Any help would be appreciated, or sent to the right spot. i tried this both with the 64 bit windows binary, and a cygwin perl version. Both resulted in the same issue. Thanks RE: 7z2hashcat - nazgulnarsil - 11-21-2017 Is the encrypted blob necessary for using hashcat to discover the password used to encrypt? eg can I send off everything needed to attack the password without giving them the actual file? Or does 7zip hash the password *with* the file itself? Thanks! RE: 7z2hashcat - philsmd - 11-21-2017 The original 7-zip file (*.7z) is not needed to recover the password. But the entire output of 7z2hashcat is needed (the whole hash). Yes, as mentioned here: https://github.com/philsmd/7z2hashcat#sensitive-data-warning some hashes generated by 7z2hashcat could in theory contain (encrypted and sometimes compressed) sensitive data. Unfortunately, this is how the algorithm used by 7-Zip works, it needs to create a crc32 checksum of the data. In general, it's only the checksum of 1 file (in general "the first" file). 7z2hashcat tries to output the smallest amount of bytes possible (i.e. only those bytes that are really needed). The output of 7z2hashcat does not contain any extra bytes or data that could also be skipped/ignored (everything within the hash is needed for hashcat). RE: 7z2hashcat - nazgulnarsil - 11-22-2017 (11-21-2017, 12:30 PM)philsmd Wrote: The original 7-zip file (*.7z) is not needed to recover the password. Thanks a lot for the explanation! So if it's one file that was compressed then the contents of that file are accessible to anyone who cracks the hash of the file I guess. Good to know. RE: 7z2hashcat - undeath - 12-01-2017 What's the actual problem? Does hashcat not load the hash? RE: 7z2hashcat - pench - 08-27-2018 Hello! I've got some error: user@test111:~$ perl 7z2hashcat.pl SQ5_SQ5V_Electrical_System.7z WARNING: the file 'SQ5_SQ5V_Electrical_System.7z' unfortunately can't be used with hashcat since the data length in this particular case is too long (30196848 of the maximum allowed 327528 bytes). There is my file: [removed] (28.8 MB) What I must do? Thank you. --------------------- Translated with Google Translate (c) RE: 7z2hashcat - Nay - 08-27-2018 Hi, You could try to chop the first 327528 bytes off as it is described in the 7z2hashcat.pl. Then use the script on the new *file* Code: # This field is the first field after the hash signature (i.e. after "$7z$). |