Find better pad size
magnumripper opened this issue · 5 comments
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!
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.