hisoka Posted June 26, 2017 Share Posted June 26, 2017 (edited) Hello glad to be again in w3schools forum when I opened a zip file in hex editor , I noticed that after the end of the file , there are additional hex values . For example in a zip file I opened in a hex editor there was like this : 50 4B 05 06 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 50 4B 05 06 hex values represent the end of the zip file . However , I do not understand what represent these additional hex values after the end 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 ?? Edited June 26, 2017 by hisoka Link to comment Share on other sites More sharing options...
Ingolme Posted June 26, 2017 Share Posted June 26, 2017 According to Wikipedia, 50 4B 05 06 marks the start of the End of central directory header which contains some information about the ZIP file. Link to comment Share on other sites More sharing options...
hisoka Posted June 26, 2017 Author Share Posted June 26, 2017 and what represent these additional hex values after 50 4B 05 06 00 00 00 00 02 00 02 00 6F 00 00 00 84 09 00 00 00 00 ?? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 26, 2017 Share Posted June 26, 2017 Check that Wikipedia article, look at the EOCD table that lists the various offsets. Link to comment Share on other sites More sharing options...
hisoka Posted June 27, 2017 Author Share Posted June 27, 2017 I already did . However I still do not understand what are the additional hex values after 50 4B 05 06 Link to comment Share on other sites More sharing options...
Ingolme Posted June 27, 2017 Share Posted June 27, 2017 The table in the Wikipedia article states exactly what all the additional bytes are. I'll just copy what's in the article here for you and show your bytes next to them: https://en.wikipedia.org/wiki/Zip_(file_format)#File_headers 2 bytes: Number of this disk 0x0000 2 bytes: Disk where central directory starts 0x0000 2 bytes: Number of central directory records on the disk 0x0002 2 bytes: Total number of central directory records 0x0002 4 bytes: Size of central directory (bytes) 0x0000006F 4 bytes: Offset of start of central directory, relative to start of archive 0x00000984 2 bytes: Comment length (n) 0x0000 n bytes: Comment Link to comment Share on other sites More sharing options...
hisoka Posted July 1, 2017 Author Share Posted July 1, 2017 could you please tell me what do some of these above mean ? what does Number of this disk mean ? what does Disk where central directory starts mean ? what are central directory records ? Link to comment Share on other sites More sharing options...
Ingolme Posted July 1, 2017 Share Posted July 1, 2017 Why are you asking us to do your research for you? The central directory and disks are described in detail right in the Wikipedia article under the Structure section https://en.wikipedia.org/wiki/Zip_(file_format)#Structure If you want information directly from the source, citation 23 points directly to the official specification document https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT In summary: Central directly describes the hierarchy of files in the archive, there's even a diagram here https://en.wikipedia.org/wiki/Zip_(file_format)#/media/File:ZIP-64_Internal_Layout.svg Disks refer to diskettes when the file spans across multiple floppy disks. Currently these fields can be used to send zip files in parts through email or other removable drives. Please make more of an effort, even after we linked you directly to the information you still did not try to read it for yourself. Link to comment Share on other sites More sharing options...
hisoka Posted July 2, 2017 Author Share Posted July 2, 2017 Thank you , I will try to put more efforts before asking the question Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now