Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   packing-format (https://forum.exetools.com/showthread.php?t=5828)

MaRKuS-DJM 11-07-2004 01:27

packing-format
 
i'm trying to extract a setup-file manually with my debugger.
this file creates a temporary file called com.dat, i analysed this is packed through the GZ-format.
so i unpacked it through winrar and got a file called com.gz.out

this file has no crypto or something else, all files are in plain there but i don't want to do that manually. the format in hex is looking like this:

00E0010064626768656C702E646C6C00CDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCDCD

there are a lot of more CD hex-bytes.
the first part seems to be some type of descriptor, it's a dword.
then there's the filename, a lot of more CD and then the next descriptor and next filename till it gets to the beginning of the files.

anyone knows what format this is and how to decompress it?

ArC 11-08-2004 18:13

I assume it's the TAR format that can be unpacked by WinRAR aswell.
TAR is often used along with GZ because with GZ you can only compress one file at a time so first all files you want to compress are put into an uncompressed tar which is compressed with gz.

MaRKuS-DJM 11-11-2004 00:27

i thought the same first, but it seems if i rename it to tar, winrar can't read it. maybe modified, maybe some other type...

Juca 11-11-2004 01:55

you might try to post something here:

http://groups.google.com/groups?hl=en&lr=&group=comp.compression

ArC 11-11-2004 03:05

Quote:

this file has no crypto or something else, all files are in plain there...
Well if all files are in plaintext (as I understand from this statement) then it
should be easy to write an own unpacker for this un-gz-ed file.
What you have described looks like a structure of the following format
Code:

struct ungzfile
{
unsigned long dwOffset; // Offset of the file
char szFilename[256];    // name of the file, maybe more than 256 bytes
}

So if you wanted to extract all files you just "read out" this structure and store all offsets in an array until you reach the offset of the first entry. Now that you know the offsets of the files you can extract them.


All times are GMT +8. The time now is 09:17.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX