Git Product home page Git Product logo

Comments (5)

SheetJSDev avatar SheetJSDev commented on May 21, 2024

Those are the actual entry names.

MS-CFB 2.6.1 asserts the names are encoded in UTF-16. Here are the actual bytes from the first four directory entries:

5200 6f00 6f00 7400 2000 4500 6e00 7400
7200 7900 0000
"Root Entry" (this is not included in the output)

3042 2743 6438 be41 6441 0000 
"䈰䌧㡤䆾䅤"

0500 5300 7500 6d00 6d00 6100 7200 7900
4900 6e00 6600 6f00 7200 6d00 6100 7400
6900 6f00 6e00 0000
"\u0005SummaryInformation"

4048 ff3f e443 ec41 e445 ac44 3148 0000
"䡀㿿䏤䇬䗤䒬䠱"

Since both the Root Entry and the standard \u0005SummaryInformation stream appear, I'm inclined to believe that MSI is doing something funky with the filenames.

And if this blog post is to be believed, MSI is in fact doing something funky with the filenames:

The Windows Installer actually compresses the stream names to double the space available to 62 or 63 characters (plus one extra for the null terminator, but again, who's counting?). That compression is why if you open a MSI file with dfview.exe you'll see a bunch of gobbledygook names. That compression algorithm is not documented so I can't comment on it.

from js-cfb.

SheetJSDev avatar SheetJSDev commented on May 21, 2024

We added the display to the website, reversing the algorithm based on the expected names in the Installer Database documentation:

screen shot 2018-04-23 at 13 40 45

from js-cfb.

kjk avatar kjk commented on May 21, 2024

Awesome, thanks!

from js-cfb.

msauper avatar msauper commented on May 21, 2024

can you describe the algorithm used to encode the names?

from js-cfb.

msauper avatar msauper commented on May 21, 2024

Thanks for your help. This worked quite well.

from js-cfb.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.