Add warning message about large outputs of zip2john - #5837
Conversation
|
Hi. Thanks. This would partially fix issue #4051. Please squash the commits into one (with a commit message that would reflect what it does, and without the Please replace the word "WARNING" with "Note". We use "warning" for things that are potentially not normal, whereas this is always normal.
Ideally, we'd also implement similar for some other |
a64b75b to
117761b
Compare
|
Thanks! I squashed the commits into one and wrote a cleaner message with no errors. I wrote NOTE in uppercase since that is how it was written on the other If you are able identify which |
Actually, it is "Note" in many other messages, and "NOTE" in only 3 other messages (but one of them is in But I don't mind accepting this as-is.
Maybe @magnumripper can help here. |
117761b to
a5e636d
Compare
|
Thanks for letting me know! I appreciate it. I made the changes and left the other capitalized NOTEs since it wasn't part of this case and I don't know how the issues are structured for this project. |
"grep -l FMT_HUGE *plug.c" will show potential format sources but the threshold for that is very low - 900 bytes or so. RAR (old RAR, not RAR5) may do this, unless file was made with "rar -hp". pkzip and Zip (winzip) may too. Also DMG, CryptoSafe, Keepass and DMG, as well as some other non-archive formats. None of them will unless really needed - for archive files this means when there's no smaller file to pick as the victim. BTW a silly problem is we convert to hex so a 1 GB archive will produce a 2 GB input file. We should at least convert to Base64 instead (1.3 GB), or even support binary input files. A format could autodetect whether hex or Base64 is used - already at 20 characters, the risk that Base64 looks like hex by chance is all but impossible. Edit: It's one in almost 10^14 or 2^46. magnum |
Sometimes
zip2johnwould produce a large output and confuse the user. A warning message has been added to explain to the user that this is normal behavior.