.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "ZIPDETAILS 1p" .TH ZIPDETAILS 1p 2024-04-07 "perl v5.38.2" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME zipdetails \- display the internal structure of zip files .SH SYNOPSIS .IX Header "SYNOPSIS" .Vb 1 \& zipdetails [options] zipfile.zip .Ve .SH DESCRIPTION .IX Header "DESCRIPTION" This program creates a detailed report on the internal structure of zip files. For each item of metadata within a zip file the program will output .IP "the offset into the zip file where the item is located." 5 .IX Item "the offset into the zip file where the item is located." .PD 0 .IP "a textual representation for the item." 5 .IX Item "a textual representation for the item." .IP "an optional hex dump of the item." 5 .IX Item "an optional hex dump of the item." .PD .PP The program assumes a prior understanding of the internal structure of Zip files. You should have a copy of the zip file definition, APPNOTE.TXT , at hand to help understand the output from this program. .SS "Default Behaviour" .IX Subsection "Default Behaviour" By default the program expects to be given a well-formed zip file. It will navigate the zip file by first parsing the zip \f(CW\*(C`Central Directory\*(C'\fR at the end of the file. If the \f(CW\*(C`Central Directory\*(C'\fR is found, it will then walk sequentally through the zip records starting at the beginning of the file. See "Advanced Analysis" for other processing options. .PP If the program finds any structural or portability issues with the zip file it will print a message at the point it finds the issue and/or in a summary at the end of the output report. Whilst the set of issues that can be detected it exhaustive, don't assume that this program can find \fIall\fR the possible issues in a zip file \- there are likely edge conditions that need to be addressed. .PP If you have suggestions for use-cases where this could be enhanced please consider creating an enhancement request (see "SUPPORT"). .PP \fIDate & Time fields\fR .IX Subsection "Date & Time fields" .PP Date/time fields found in zip files are displayed in local time. Use the \&\f(CW\*(C`\-\-utc\*(C'\fR option to display these fields in Coordinated Universal Time (UTC). .PP \fIFilenames & Comments\fR .IX Subsection "Filenames & Comments" .PP Filenames and comments are decoded/encoded using the default system encoding of the host running \f(CW\*(C`zipdetails\*(C'\fR. When the sytem encoding cannot be determined \f(CW\*(C`cp437\*(C'\fR will be used. .PP The exceptions are .IP \(bu 5 when the \f(CW\*(C`Language Encoding Flag\*(C'\fR is set in the zip file, the filename/comment fields are assumed to be encoded in UTF\-8. .IP \(bu 5 the definition for the metadata field implies UTF\-8 charset encoding .PP See "Filename Encoding Issues" and "Filename & Comment Encoding Options" for ways to control the encoding of filename/comment fields. .SS OPTIONS .IX Subsection "OPTIONS" \fIGeneral Options\fR .IX Subsection "General Options" .ie n .IP """\-h"", ""\-\-help""" 5 .el .IP "\f(CW\-h\fR, \f(CW\-\-help\fR" 5 .IX Item "-h, --help" Display help .ie n .IP """\-\-redact""" 5 .el .IP \f(CW\-\-redact\fR 5 .IX Item "--redact" Obscure filenames and payload data in the output. Handy for the use case where the zip files contains sensitive data that cannot be shared. .ie n .IP """\-\-scan""" 5 .el .IP \f(CW\-\-scan\fR 5 .IX Item "--scan" Pessimistically scan the zip file loking for possible zip records. Can be error-prone. For very large zip files this option is slow. Consider using the \f(CW\*(C`\-\-walk\*(C'\fR option first. See "Advanced Analysis Options" .ie n .IP """\-\-utc""" 5 .el .IP \f(CW\-\-utc\fR 5 .IX Item "--utc" By default, date/time fields are displayed in local time. Use this option to display them in in Coordinated Universal Time (UTC). .ie n .IP """\-v""" 5 .el .IP \f(CW\-v\fR 5 .IX Item "-v" Enable Verbose mode. See "Verbose Output". .ie n .IP """\-\-version""" 5 .el .IP \f(CW\-\-version\fR 5 .IX Item "--version" Display version number of the program and exit. .ie n .IP """\-\-walk""" 5 .el .IP \f(CW\-\-walk\fR 5 .IX Item "--walk" Optimistically walk the zip file looking for possible zip records. See "Advanced Analysis Options" .PP \fIFilename & Comment Encoding Options\fR .IX Subsection "Filename & Comment Encoding Options" .PP See "Filename Encoding Issues" .ie n .IP """\-\-encoding name""" 5 .el .IP "\f(CW\-\-encoding name\fR" 5 .IX Item "--encoding name" Use encoding "name" when reading filenames/comments from the zip file. .Sp When this option is not specified the default the system encoding is used. .ie n .IP """ \-\-no\-encoding""" 5 .el .IP "\f(CW \-\-no\-encoding\fR" 5 .IX Item " --no-encoding" Disable all filename & comment encoding/decoding. Filenames/comments are processed as byte streams. .Sp This option is not enabled by default. .ie n .IP """\-\-output\-encoding name""" 5 .el .IP "\f(CW\-\-output\-encoding name\fR" 5 .IX Item "--output-encoding name" Use encoding "name" when writing filename/comments to the display. By default the system encoding will be used. .ie n .IP """\-\-language\-encoding"", ""\-\-no\-language\-encoding""" 5 .el .IP "\f(CW\-\-language\-encoding\fR, \f(CW\-\-no\-language\-encoding\fR" 5 .IX Item "--language-encoding, --no-language-encoding" Modern zip files set a metadata entry in zip files, called the "Language encoding flag", when they write filenames/comments encoded in UTF\-8. .Sp Occasionally some applications set the \f(CW\*(C`Language Encoding Flag\*(C'\fR but write data that is not UTF\-8 in the filename/comment fields of the zip file. This will usually result in garbled text being output for the filenames/comments. .Sp To deal with this use-case, set the \f(CW\*(C`\-\-no\-language\-encoding\*(C'\fR option and, if needed, set the \f(CW\*(C`\-\-encoding name\*(C'\fR option to encoding actually used. .Sp Default is \f(CW\*(C`\-\-language\-encoding\*(C'\fR. .ie n .IP """\-\-debug\-encoding""" 5 .el .IP \f(CW\-\-debug\-encoding\fR 5 .IX Item "--debug-encoding" Display extra debugging info when a filename/comment encoding has changed. .PP \fIMessage Control Options\fR .IX Subsection "Message Control Options" .ie n .IP """\-\-messages"", ""\-\-no\-messages""" 5 .el .IP "\f(CW\-\-messages\fR, \f(CW\-\-no\-messages\fR" 5 .IX Item "--messages, --no-messages" Enable/disable the output of all info/warning/error messages. .Sp Disabling messages means that no checks are carried out to check that the zip file is well-formed. .Sp Default is enabled. .ie n .IP """\-\-exit\-bitmask"", ""\-\-no\-exit\-bitmask""" 5 .el .IP "\f(CW\-\-exit\-bitmask\fR, \f(CW\-\-no\-exit\-bitmask\fR" 5 .IX Item "--exit-bitmask, --no-exit-bitmask" Enable/disable exit status bitmask for messages. Default disabled. Bitmask values are: 1 for info, 2 for warning and 4 for error. .SS "Default Output" .IX Subsection "Default Output" By default \f(CW\*(C`zipdetails\*(C'\fR will output each metadata field from the zip file in three columns. .IP 1. 5 The offset, in hex, to the start of the field relative to the beginning of the file. .IP 2. 5 The name of the field. .IP 3. 5 Detailed information about the contents of the field. The format depends on the type of data: .RS 5 .IP \(bu 5 Numeric Values .Sp If the field contains an 8\-bit, 16\-bit, 32\-bit or 64\-bit numeric value, it will be displayed in both hex and decimal \-\- for example "\f(CW\*(C`002A (42)\*(C'\fR". .Sp Note that Zip files store most numeric values in \fIlittle-endian\fR encoding (there area few rare instances where \fIbig-endian\fR is used). The value read from the zip file will have the \fIendian\fR encoding removed before being displayed. .Sp Next, is an optional description of what the numeric value means. .IP \(bu 5 String .Sp If the field corresponds to a printable string, it will be output enclosed in single quotes. .IP \(bu 5 Binary Data .Sp The term \fIBinary Data\fR is just a catch-all for all other metadata in the zip file. This data is displayed as a series of ascii-hex byte values in the same order they are stored in the zip file. .RE .RS 5 .RE .PP For example, assuming you have a zip file, \f(CW\*(C`test,zip\*(C'\fR, with one entry .PP .Vb 7 \& $ unzip \-l test.zip \& Archive: test.zip \& Length Date Time Name \& \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\-\-\-\- \-\-\-\-\- \-\-\-\- \& 446 2023\-03\-22 20:03 lorem.txt \& \-\-\-\-\-\-\-\-\- \-\-\-\-\-\-\- \& 446 1 file .Ve .PP Running \f(CW\*(C`zipdetails\*(C'\fR will gives this output .PP .Vb 1 \& $ zipdetails test.zip \& \& 0000 LOCAL HEADER #1 04034B50 (67324752) \& 0004 Extract Zip Spec 14 (20) \*(Aq2.0\*(Aq \& 0005 Extract OS 00 (0) \*(AqMS\-DOS\*(Aq \& 0006 General Purpose Flag 0000 (0) \& [Bits 1\-2] 0 \*(AqNormal Compression\*(Aq \& 0008 Compression Method 0008 (8) \*(AqDeflated\*(Aq \& 000A Modification Time 5676A072 (1450614898) \*(AqWed Mar 22 20:03:36 2023\*(Aq \& 000E CRC F90EE7FF (4178503679) \& 0012 Compressed Size 0000010E (270) \& 0016 Uncompressed Size 000001BE (446) \& 001A Filename Length 0009 (9) \& 001C Extra Length 0000 (0) \& 001E Filename \*(Aqlorem.txt\*(Aq \& 0027 PAYLOAD \& \& 0135 CENTRAL HEADER #1 02014B50 (33639248) \& 0139 Created Zip Spec 1E (30) \*(Aq3.0\*(Aq \& 013A Created OS 03 (3) \*(AqUnix\*(Aq \& 013B Extract Zip Spec 14 (20) \*(Aq2.0\*(Aq \& 013C Extract OS 00 (0) \*(AqMS\-DOS\*(Aq \& 013D General Purpose Flag 0000 (0) \& [Bits 1\-2] 0 \*(AqNormal Compression\*(Aq \& 013F Compression Method 0008 (8) \*(AqDeflated\*(Aq \& 0141 Modification Time 5676A072 (1450614898) \*(AqWed Mar 22 20:03:36 2023\*(Aq \& 0145 CRC F90EE7FF (4178503679) \& 0149 Compressed Size 0000010E (270) \& 014D Uncompressed Size 000001BE (446) \& 0151 Filename Length 0009 (9) \& 0153 Extra Length 0000 (0) \& 0155 Comment Length 0000 (0) \& 0157 Disk Start 0000 (0) \& 0159 Int File Attributes 0001 (1) \& [Bit 0] 1 \*(AqText Data\*(Aq \& 015B Ext File Attributes 81ED0000 (2179792896) \& [Bits 16\-24] 01ED (493) \*(AqUnix attrib: rwxr\-xr\-x\*(Aq \& [Bits 28\-31] 08 (8) \*(AqRegular File\*(Aq \& 015F Local Header Offset 00000000 (0) \& 0163 Filename \*(Aqlorem.txt\*(Aq \& \& 016C END CENTRAL HEADER 06054B50 (101010256) \& 0170 Number of this disk 0000 (0) \& 0172 Central Dir Disk no 0000 (0) \& 0174 Entries in this disk 0001 (1) \& 0176 Total Entries 0001 (1) \& 0178 Size of Central Dir 00000037 (55) \& 017C Offset to Central Dir 00000135 (309) \& 0180 Comment Length 0000 (0) \& # \& # Done .Ve .SS "Verbose Output" .IX Subsection "Verbose Output" If the \f(CW\*(C`\-v\*(C'\fR option is present, the metadata output is split into the following columns: .IP 1. 5 The offset, in hex, to the start of the field relative to the beginning of the file. .IP 2. 5 The offset, in hex, to the end of the field relative to the beginning of the file. .IP 3. 5 The length, in hex, of the field. .IP 4. 5 A hex dump of the bytes in field in the order they are stored in the zip file. .IP 5. 5 A textual description of the field. .IP 6. 5 Information about the contents of the field. See the description in the "Default Output" for more details. .PP Here is the same zip file, \f(CW\*(C`test.zip\*(C'\fR, dumped using the \f(CW\*(C`zipdetails\*(C'\fR \&\f(CW\*(C`\-v\*(C'\fR option: .PP .Vb 1 \& $ zipdetails \-v test.zip \& \& 0000 0003 0004 50 4B 03 04 LOCAL HEADER #1 04034B50 (67324752) \& 0004 0004 0001 14 Extract Zip Spec 14 (20) \*(Aq2.0\*(Aq \& 0005 0005 0001 00 Extract OS 00 (0) \*(AqMS\-DOS\*(Aq \& 0006 0007 0002 00 00 General Purpose Flag 0000 (0) \& [Bits 1\-2] 0 \*(AqNormal Compression\*(Aq \& 0008 0009 0002 08 00 Compression Method 0008 (8) \*(AqDeflated\*(Aq \& 000A 000D 0004 72 A0 76 56 Modification Time 5676A072 (1450614898) \*(AqWed Mar 22 20:03:36 2023\*(Aq \& 000E 0011 0004 FF E7 0E F9 CRC F90EE7FF (4178503679) \& 0012 0015 0004 0E 01 00 00 Compressed Size 0000010E (270) \& 0016 0019 0004 BE 01 00 00 Uncompressed Size 000001BE (446) \& 001A 001B 0002 09 00 Filename Length 0009 (9) \& 001C 001D 0002 00 00 Extra Length 0000 (0) \& 001E 0026 0009 6C 6F 72 65 Filename \*(Aqlorem.txt\*(Aq \& 6D 2E 74 78 \& 74 \& 0027 0134 010E ... PAYLOAD \& \& 0135 0138 0004 50 4B 01 02 CENTRAL HEADER #1 02014B50 (33639248) \& 0139 0139 0001 1E Created Zip Spec 1E (30) \*(Aq3.0\*(Aq \& 013A 013A 0001 03 Created OS 03 (3) \*(AqUnix\*(Aq \& 013B 013B 0001 14 Extract Zip Spec 14 (20) \*(Aq2.0\*(Aq \& 013C 013C 0001 00 Extract OS 00 (0) \*(AqMS\-DOS\*(Aq \& 013D 013E 0002 00 00 General Purpose Flag 0000 (0) \& [Bits 1\-2] 0 \*(AqNormal Compression\*(Aq \& 013F 0140 0002 08 00 Compression Method 0008 (8) \*(AqDeflated\*(Aq \& 0141 0144 0004 72 A0 76 56 Modification Time 5676A072 (1450614898) \*(AqWed Mar 22 20:03:36 2023\*(Aq \& 0145 0148 0004 FF E7 0E F9 CRC F90EE7FF (4178503679) \& 0149 014C 0004 0E 01 00 00 Compressed Size 0000010E (270) \& 014D 0150 0004 BE 01 00 00 Uncompressed Size 000001BE (446) \& 0151 0152 0002 09 00 Filename Length 0009 (9) \& 0153 0154 0002 00 00 Extra Length 0000 (0) \& 0155 0156 0002 00 00 Comment Length 0000 (0) \& 0157 0158 0002 00 00 Disk Start 0000 (0) \& 0159 015A 0002 01 00 Int File Attributes 0001 (1) \& [Bit 0] 1 \*(AqText Data\*(Aq \& 015B 015E 0004 00 00 ED 81 Ext File Attributes 81ED0000 (2179792896) \& [Bits 16\-24] 01ED (493) \*(AqUnix attrib: rwxr\-xr\-x\*(Aq \& [Bits 28\-31] 08 (8) \*(AqRegular File\*(Aq \& 015F 0162 0004 00 00 00 00 Local Header Offset 00000000 (0) \& 0163 016B 0009 6C 6F 72 65 Filename \*(Aqlorem.txt\*(Aq \& 6D 2E 74 78 \& 74 \& \& 016C 016F 0004 50 4B 05 06 END CENTRAL HEADER 06054B50 (101010256) \& 0170 0171 0002 00 00 Number of this disk 0000 (0) \& 0172 0173 0002 00 00 Central Dir Disk no 0000 (0) \& 0174 0175 0002 01 00 Entries in this disk 0001 (1) \& 0176 0177 0002 01 00 Total Entries 0001 (1) \& 0178 017B 0004 37 00 00 00 Size of Central Dir 00000037 (55) \& 017C 017F 0004 35 01 00 00 Offset to Central Dir 00000135 (309) \& 0180 0181 0002 00 00 Comment Length 0000 (0) \& # \& # Done .Ve .SS "Advanced Analysis" .IX Subsection "Advanced Analysis" If you have a corrupt or non-standard zip file, particulatly one where the \&\f(CW\*(C`Central Directory\*(C'\fR metadata at the end of the file is absent/incomplete, you can use either the \f(CW\*(C`\-\-walk\*(C'\fR option or the \f(CW\*(C`\-\-scan\*(C'\fR option to search for any zip metadata that is still present in the file. .PP When either of these options is enabled, this program will bypass the initial step of reading the \f(CW\*(C`Central Directory\*(C'\fR at the end of the file and simply scan the zip file sequentially from the start of the file looking for zip metedata records. Although this can be error prone, for the most part it will find any zip file metadata that is still present in the file. .PP The difference between the two options is how aggressive the sequential scan is: \f(CW\*(C`\-\-walk\*(C'\fR is optimistic, while \f(CW\*(C`\-\-scan\*(C'\fR is pessimistic. .PP To understand the difference in more detail you need to know a bit about how zip file metadata is structured. Under the hood, a zip file uses a series of 4\-byte signatures to flag the start of a each of the metadata records it uses. When the \f(CW\*(C`\-\-walk\*(C'\fR or the \f(CW\*(C`\-\-scan\*(C'\fR option is enabled both work identically by scanning the file from the beginning looking for any the of these valid 4\-byte metadata signatures. When a 4\-byte signature is found both options will blindly assume that it has found a vald metadata record and display it. .PP \fR\f(CI\*(C`\-\-walk\*(C'\fR\fI\fR .IX Subsection "--walk" .PP The \f(CW\*(C`\-\-walk\*(C'\fR option optimistically assumes that it has found a real zip metatada record and so starts the scan for the next record directly after the record it has just output. .PP \fR\f(CI\*(C`\-\-scan\*(C'\fR\fI\fR .IX Subsection "--scan" .PP The \f(CW\*(C`\-\-scan\*(C'\fR option is pessimistic and assumes the 4\-byte signature sequence may have been a false-positive, so before starting the scan for the next resord, it will rewind to the location in the file directly after the 4\-byte sequecce it just processed. This means it will rescan data that has already been processed. For very lage zip files the \f(CW\*(C`\-\-scan\*(C'\fR option can be really realy slow, so trying the \f(CW\*(C`\-\-walk\*(C'\fR option first. .PP \&\fBImportant Note\fR: If the zip file being processed contains one or more nested zip files, and the outer zip file uses the \f(CW\*(C`STORE\*(C'\fR compression method, the \f(CW\*(C`\-\-scan\*(C'\fR option will display the zip metadata for both the outer & inner zip files. .SS "Filename Encoding Issues" .IX Subsection "Filename Encoding Issues" Sometimes when displaying the contents of a zip file the filenames (or comments) appear to be garbled. This section walks through the reasons and mitigations that can be applied to work around these issues. .PP \fIBackground\fR .IX Subsection "Background" .PP When zip files were first created in the 1980's, there was no Unicode or UTF\-8. Issues around character set encoding interoperability were not a major concern. .PP Initially, the only official encoding supported in zip files was IBM Code Page 437 (AKA \f(CW\*(C`CP437\*(C'\fR). As time went on users in locales where \f(CW\*(C`CP437\*(C'\fR wasn't appropriate stored filenames in the encoding native to their locale. If you were running a system that matched the locale of the zip file, all was well. If not, you had to post-process the filenames after unzipping the zip file. .PP Fast forward to the introduction of Unicode and UTF\-8 encoding. The approach now used by all major zip implementations is to set the \f(CW\*(C`Language encoding flag\*(C'\fR (also known as \f(CW\*(C`EFS\*(C'\fR) in the zip file metadata to signal that a filename/comment is encoded in UTF\-8. .PP To ensure maximum interoperability when sharing zip files store 7\-bit filenames as-is in the zip file. For anything else the \f(CW\*(C`EFS\*(C'\fR bit needs to be set and the filename is encoded in UTF\-8. Although this rule is kept to for the most part, there are exceptions out in the wild. .PP \fIDealing with Encoding Errors\fR .IX Subsection "Dealing with Encoding Errors" .PP The most common filename encoding issue is where the \f(CW\*(C`EFS\*(C'\fR bit is not set and the filename is stored in a character set that doesnt't match the system encoding. This mostly impacts legacy zip files that predate the introduction of Unicode. .PP To deal with this issue you first need to know what encoding was used in the zip file. For example, if the filename is encoded in \f(CW\*(C`ISO\-8859\-1\*(C'\fR you can display the filenames using the \f(CW\*(C`\-\-encoding\*(C'\fR option .PP .Vb 1 \& zipdetails \-\-encoding ISO\-8859\-1 myfile.zip .Ve .PP A less common variation of this is where the \f(CW\*(C`EFS\*(C'\fR bit is set, signalling that the filename will be encoded in UTF\-8, but the filename is not encoded in UTF\-8. To deal with this scenarion, use the \f(CW\*(C`\-\-no\-language\-encoding\*(C'\fR option along with the \f(CW\*(C`\-\-encoding\*(C'\fR option. .SH LIMITATIONS .IX Header "LIMITATIONS" The following zip file features are not supported by this program: .IP \(bu 5 Multi\-part/Split/Spanned Zip Archives. .Sp This program cannot give an overall report on the combined parts of a multi-part zip file. .Sp The best you can do is run with either the \f(CW\*(C`\-\-scan\*(C'\fR or \f(CW\*(C`\-\-walk\*(C'\fR options against individual parts. Some will contains zipfile metadata which will be detected and some will only contain compressed payload data. .IP \(bu 5 Encrypted Central Directory .Sp When pkzip \fIStrong Encryption\fR is enabled in a zip file this program can still parse most of the metadata in the zip file. The exception is when the \&\f(CW\*(C`Central Directory\*(C'\fR of a zip file is also encrypted. This program cannot parse any metadata from an encrypted \f(CW\*(C`Central Directory\*(C'\fR. .IP \(bu 5 Corrupt Zip files .Sp When \f(CW\*(C`zipdetails\*(C'\fR encounters a corrupt zip file, it will do one or more of the following .RS 5 .IP \(bu 5 Display details of the corruption and carry on .IP \(bu 5 Display details of the corruption and terminate .IP \(bu 5 Terminate with a generic message .RE .RS 5 .Sp Which of the above is output is dependent in the severity of the corruption. .RE .SH TODO .IX Header "TODO" .SS "JSON/YML Output" .IX Subsection "JSON/YML Output" Output some of the zip file metadata as a JSON or YML document. .SS "Corrupt Zip files" .IX Subsection "Corrupt Zip files" Although the detection and reporting of most of the common corruption use-cases is present in \f(CW\*(C`zipdetails\*(C'\fR, there are likely to be other edge cases that need to be supported. .PP If you have a corrupt Zip file that isn't being processed properly, please report it (see "SUPPORT"). .SH SUPPORT .IX Header "SUPPORT" General feedback/questions/bug reports should be sent to . .SH "SEE ALSO" .IX Header "SEE ALSO" The primary reference for Zip files is APPNOTE.TXT . .PP An alternative reference is the Info-Zip appnote. This is available from .PP For details of WinZip AES encryption see AES Encryption Information: Encryption Specification AE\-1 and AE\-2 . .PP The \f(CW\*(C`zipinfo\*(C'\fR program that comes with the info-zip distribution () can also display details of the structure of a zip file. .SH AUTHOR .IX Header "AUTHOR" Paul Marquess \fIpmqs@cpan.org\fR. .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (c) 2011\-2024 Paul Marquess. All rights reserved. .PP This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.