t-hack.com

English - X300T / X301T / DIT9719 / KISS KMM / BT Vision / Bluewin TV-Box / V-BOX/ VIP 1216 or similar Hardware => Software => Topic started by: BTVHack on 04. Jan 2008, 15:53

Title: PART Decompression in WIKI
Post by: BTVHack on 04. Jan 2008, 15:53
Hi,

Have I got this correct?

Download Parts
Check pkg.DIR for 2 at end of row
zlib - decompress files with a 2
bitshift decompressed files
Join files together
Decompress Joined

I have written a vb program to go and download the parts, but would like to try and decompress them
so will probably write a program to do the above, if that is the correct procedure.

Thanks
BTVHack
Title: Re: PART Decompression in WIKI
Post by: robert_s on 04. Jan 2008, 16:05
After joining the files together, the result is _not_ compressed. It is a container file of a simple structure:

8 Bytes unknown Header (might be a hash)
while not eof()
{
DWORD Length; // little-endian
char FileName[]; // zero-terminated C-string, may include paths!
unsigned char FileContents[Length];
};

This will give you several hundred files... Then you can also take the file NK.BIN apart, which breaks up in another over a hundred files.
Title: Re: PART Decompression in WIKI
Post by: mce2222 on 04. Jan 2008, 18:44
and also don't forget the XOR after bitshifting ;)
Title: Re: PART Decompression in WIKI
Post by: redband on 06. Jan 2008, 18:44
Hallo,

I'm another curious BTV user and have been trying to "zlib - decompress" the PART files but have not found a tool to do this.  I have tried a number of zlib implementations both on linux and windows, but none seem to be able to do anything with these DAT files.  Any ideas or suggestions for a working tool?

Gruss

Redband   
Title: Re: PART Decompression in WIKI
Post by: robert_s on 06. Jan 2008, 18:49

I'm another curious BTV user and have been trying to "zlib - decompress" the PART files but have not found a tool to do this.  I have tried a number of zlib implementations both on linux and windows, but none seem to be able to do anything with these DAT files.  Any ideas or suggestions for a working tool?


I'm successfully using this one in Windows XP:

http://aluigi.altervista.org/mytoolz.htm#offzip
Title: Re: PART Decompression in WIKI
Post by: redband on 06. Jan 2008, 21:42
Good find...
I see that it is the lack of headers that cause problems for the other utils I tried...
Thanks

Redband
Title: Re: PART Decompression in WIKI
Post by: redband on 13. Jan 2008, 14:38
I ended up trying my hand at java and have managed to extract the files.  robert_s, you suggested that the nk.bin could also be unpacked in the same way.  Does the structure differ to that of the PKG.DIR binary?
I have tried the same unpack code against the NK.BIN but it dumps out.

Regards

Redband
Title: Re: PART Decompression in WIKI
Post by: robert_s on 13. Jan 2008, 15:55

robert_s, you suggested that the nk.bin could also be unpacked in the same way.  Does the structure differ to that of the PKG.DIR binary?
I have tried the same unpack code against the NK.BIN but it dumps out.


No, NK.BIN uses a totally different format, which I have no clue of. But you can use the toolset found in the WIKI to decompose the NK.BIN file:

http://www.t-hack.com/wiki/index.php/NK.BIN_toolset
Title: Re: PART Decompression in WIKI
Post by: redband on 13. Jan 2008, 17:01
Thanks...

Sorry, I guess I should have tried searching before posting the question... just found the post with details on how to use the utils too.

Title: Re: PART Decompression in WIKI
Post by: BTVHack on 23. Jan 2008, 15:55
http://www.t-hack.com/wiki/index.php/IPTV_application_update

Is there a tool as yet?.... I had started to write a vb version, but time was ticking on other projects
so didn't get further than d/ling the part files and reading the pkg.dir file for 2's

Will continue if need be, but if the jobs been done already..............

Title: Re: PART Decompression in WIKI
Post by: redband on 23. Jan 2008, 23:17

http://www.t-hack.com/wiki/index.php/IPTV_application_update

Is there a tool as yet?.... I had started to write a vb version, but time was ticking on other projects
so didn't get further than d/ling the part files and reading the pkg.dir file for 2's

Will continue if need be, but if the jobs been done already..............



I've posted some of my scraps of java code...  hope it helps...
http://www.t-hack.com/forum/index.php?topic=66.msg620#msg620
Title: Re: PART Decompression in WIKI
Post by: plenkk on 30. Jan 2008, 21:35

http://www.t-hack.com/wiki/index.php/IPTV_application_update

Is there a tool as yet?....

I wrote one today. See http://www.t-hack.com/forum/index.php?topic=66.msg725#msg725