LZMA files

trempa92

Getting comfortable
Mar 26, 2020
1,090
342
Croatia,Zagreb
Greetings everybody,

I have a question regarding lzma files. Some may be opened and extracted some may not. I am more interested in those that can be.

Ok so i downloaded access control terminal firmware that lack my region localization.

First i tried unlzma and lzma to see if i even get the same output as original. But sadly no. So i even stopped on modifying anything, i am pretty sure this wont work.

lzma_compare.jpg

Does any of you got method of compressing gui.tar with lzma to correspond the original file?

Kind regards,
 
First i tried unlzma and lzma to see if i even get the same output as original. But sadly no.
That should work OK - providing the new file has the same compression as the original, and uses the same compressor - xz or legacy lzma.

What were your command lines for the test?
 
That should work OK - providing the new file has the same compression as the original, and uses the same compressor - xz or legacy lzma.

What were your command lines for the test?
Thanks for reply alastair,

I used simple unlzma within kali and lzma back, original lzma and the one i repacked look like on the image.
 
I downloaded your gui.tar.lzma file, it unpacked normally 7-zip
I dont have problem with unpacking, i have problem with repacking. Once repacked, the new file is vastly different from original file. The header will be same, but rest of the data is different. Hence the image in my 1st post