Hello,
7z archives with password protection are not classified as undecipherable.
Instead an error is logged:
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) result line from file(1):
p002: 7-zip archive data, version 0.3\n
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) lookup_re("7-zip archive
data, version 0.3") matches key "(?i-xsm:^7-zip archive\b)", result="7z"
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) lookup
[map_full_type_to_short_type] => true, "7-zip archive data, version 0.3"
matches, result="7z", matching_key="(?i-xsm:^7-zip archive\\b)"
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) File-type of p002: 7-zip
archive data, version 0.3; (7z)
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) do_ascii: Decoding part p001
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) do_ascii: Setting sigaction
handler, was 0
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) timer set to 320 s (was 480 s)
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) do_ascii: Decoding part p001
(0 items), uulib V0.5pl20
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) prolong_timer do_ascii: timer
set to 480 s
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) decompose_part: p001 - atomic
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) Expanding 7-Zip archive p002
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) timer set to 320 s (was 480 s)
Jul 16 10:27:54 vxnue707 amavis[9941]: (09908-01) open_on_specific_fd: target
fd0 closing, to become < /dev/null
Jul 16 10:27:54 vxnue707 amavis[9941]: (09908-01) open_on_specific_fd: target
fd1 closing, to become > &=17
Jul 16 10:27:54 vxnue707 amavis[9941]: (09908-01) open_on_specific_fd: target
fd1 dup2 from fd17 > &=17
Jul 16 10:27:54 vxnue707 amavis[9941]: (09908-01) open_on_specific_fd: source
fd17 closed
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) run_command: [9941]
/usr/bin/7z l -slt -w/var/spool/amavis/tmp/amavis-20090716T102754-09908/parts
-- /var/spool/amavis/tmp/amavis-20090716T102754-09908/parts/p002 </dev/null 2>&1
Jul 16 10:27:54 vxnue707 amavis[9941]: (09908-01) open_on_specific_fd: target
fd2 closing, to become > &1
Jul 16 10:27:54 vxnue707 amavis[9941]: (09908-01) open_on_specific_fd: target
fd2 dup2 from fd1 > &1
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) do_7zip: member: ....A
"nail", 131 bytes
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) Charging 131 bytes to
remaining quota 695235 (out of 695500, (0%)) - by do_7zip-pre
Jul 16 10:27:54 vxnue707 amavis[9943]: (09908-01) open_on_specific_fd: target
fd0 closing, to become < /dev/null
Jul 16 10:27:54 vxnue707 amavis[9943]: (09908-01) open_on_specific_fd: target
fd1 closing, to become > &=17
Jul 16 10:27:54 vxnue707 amavis[9943]: (09908-01) open_on_specific_fd: target
fd1 dup2 from fd17 > &=17
Jul 16 10:27:54 vxnue707 amavis[9943]: (09908-01) open_on_specific_fd: source
fd17 closed
Jul 16 10:27:54 vxnue707 amavis[9943]: (09908-01) open_on_specific_fd: target
fd2 closing, to become > &1
Jul 16 10:27:54 vxnue707 amavis[9943]: (09908-01) open_on_specific_fd: target
fd2 dup2 from fd1 > &1
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) run_command: [9943]
/usr/bin/7z x -bd -y -w/var/spool/amavis/tmp/amavis-20090716T102754-09908/parts
-o/var/spool/amavis/tmp/amavis-20090716T102754-09908/parts/7zip --
/var/spool/amavis/tmp/amavis-20090716T102754-09908/parts/p002 </dev/null 2>&1
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) collect_results from [9943]
(/usr/bin/7z), 331 bytes, (limit 16384)
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) (!!)collect_results from
[9943] (/usr/bin/7z): exit 2 \n7-Zip 4.65 Copyright (c) 1999-2009 Igor Pavlov
2009-02-03\np7zip Version 4.65 (locale=C,Utf16=off,HugeFiles=on,1
CPU)\n\nProcessing archive: /var/spool/amavis/tmp/amavis-20090716T102754-0
9908/parts/p002\n\n\nEnter password (will not be echoed) :Extracting nail
Data Error in encrypted file. Wrong password?\n\nSub items Errors: 1\n\n
Jul 16 10:27:54 vxnue707 amavis[9908]: (09908-01) flatten_and_tidy_dir:
processing directory
"/var/spool/amavis/tmp/amavis-20090716T102754-09908/parts/7zip"
create a sample archive with
# 7z a -ppass 7z-withpass.7z /etc/issue
after the first "run_command" (7z l -slt)
it may be known to amavis, the archive is encrypted:
# 7z l -slt 7z-withpass.7z
...
Method = LZMA 7zAES
Solid = -
Blocks = 1
----------
Path = issue
Size = 28
Packed Size = 48
Modified = 2008-12-04 10:22:35
Attributes = ....A
CRC = 6021FF0D
Encrypted = + <<<---- HERE
Method = LZMA:16 7zAES:19
Block = 0
Would be nice to have amavis classify this archive as undecipherable.
Andreas
--
Andreas Schulze
DATEV eG | Internetdienste | P532
90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/