Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find better pad size #29

Open
magnumripper opened this issue Nov 30, 2020 · 6 comments
Open

Find better pad size #29

magnumripper opened this issue Nov 30, 2020 · 6 comments

Comments

@magnumripper
Copy link
Contributor

7z2hashcat tries to find "shortest file" for attacking. I think we should include "padding size" in the equation when applicable: In case we can find a larger file but with better padding, it might well be worth it!

@magnumripper
Copy link
Contributor Author

It seems when adding many files at once to an archive, it automagically becomes "solid", perhaps that means we can't use padding attack except on very first file (if even that)?

Or maybe we can, but only if we pick the first file/stream. If the latter is true AND there is usable padding, maybe we shouldn't search for a smaller file.

The other scenario is adding a file at a time to an archive. Then it may end up as non-solid - and we can compare all padding sizes and consider them when comparing data sizes, as in OP.

@0x0OZ
Copy link

0x0OZ commented Jun 11, 2024

I used 7z2hashcat.exe against a 9 year old 7z archive I think its size was 12GB and got a 3MB hash file
txt.txt
This file is 6MB but it will become 3MB if converted to UTF8.
I also tried 7z2john and got the same large hash file

@zhaoxishm
Copy link

我使用 7z2hashcat.exe 处理了一个 9 年前的 7z 档案,我认为它的大小是 12GB,并得到了一个 3MB 的哈希文件 txt.txt。 该文件为 6MB,但如果转换为 UTF8,它将变成 3MB。 我也尝试了 7z2john,得到了同样大的哈希文件

Yes, the same thing happened to me.

@ytt246
Copy link

ytt246 commented Oct 23, 2024

I used 7z2hashcat.exe against a 9 year old 7z archive I think its size was 12GB and got a 3MB hash file txt.txt This file is 6MB but it will become 3MB if converted to UTF8. I also tried 7z2john and got the same large hash file

Same here, were you able to find a solution?

@0x0OZ
Copy link

0x0OZ commented Nov 25, 2024

I used 7z2hashcat.exe against a 9 year old 7z archive I think its size was 12GB and got a 3MB hash file txt.txt This file is 6MB but it will become 3MB if converted to UTF8. I also tried 7z2john and got the same large hash file

Same here, were you able to find a solution?

Nope,

@zhaoxishm
Copy link

zhaoxishm commented Dec 13, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants