[DiscordArchive] isn't there another internal listfile ?
[DiscordArchive] isn't there another internal listfile ?
Archived author: Titi • Posted: 2025-01-17T17:24:48.370000+00:00
Original source
isn't there another internal listfile ?
Archived author: stoneharry • Posted: 2025-01-17T17:25:01.263000+00:00
Original source
hashes
Archived author: stoneharry • Posted: 2025-01-17T17:25:23.721000+00:00
Original source
which you can in theory brute force for each file, but have fun with that
Archived author: Titi • Posted: 2025-01-17T17:25:46.150000+00:00
Original source
like there's an algorithm that converts a filename to a hash, and files are stored by that in the MPQ ?
Archived author: Titi • Posted: 2025-01-17T17:26:16.648000+00:00
Original source
the client definitely doesn't need a listfile
Archived author: stoneharry • Posted: 2025-01-17T17:26:21.677000+00:00
Original source
Essentially, yes, and correct
Archived author: Titi • Posted: 2025-01-17T17:27:28.897000+00:00
Original source
so I guess you could covnert all file hashes to filenames directly instead of "building" the listfile by analysing all dbc references
Archived author: stoneharry • Posted: 2025-01-17T17:27:52.464000+00:00
Original source
you can't easily reverse a hash
Archived author: stoneharry • Posted: 2025-01-17T17:28:33.514000+00:00
Original source
http://www.zezula.net/en/mpq/namebreak.html
Archived author: stoneharry • Posted: 2025-01-17T17:28:58.732000+00:00
Original source
```
In general, MPQ archives don't contain names of archived files. The files are stored by their name's hash value. The algorithm of calculating hash value is one-way only, so it's impossible to get back the original archived file name from the hash value. Some files can be found by monitoring calls of SFileOpenFileEx from the Storm.dll library and logging of file names. But most games contain files never used by the game itself. Names of these files cannot be found everywhere (except of hacking developer's server in Blizzard :-). So how to obtain the complete listfile, which is the one way how to extract all files from an MPQ archive ?
```