At 01:04 2004-03-04 -0700, LuKreme wrote:
On 03 Mar 2004, at 23:47, Robert Allerstorfer wrote:
FALSE NEGATIVE ... 3 (all password protected .exe)
There might be a way to check the encoding on the zip to be able to
detect it is a password protected zip file isntead of a plain zip file, yes?
Yes.
'man unzip'
You could for instance invoke it like so:
unzip -Pboguspw -t zipfilename.zip
Check for a nonzero return code. More specifically, 82, though if SOME
files are encrypted and some are not, then the error would be 1, so nonzero
should suffice to mean a file which is going to have issues being
decompressed and scanned.
On the versions of these tools I have here, this seems to work as expected.
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail