How to untar...

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
commodore
Member
Member
Posts: 160
Joined: 2005-08-03, 12:55 UTC

How to untar...

Post by *commodore »

I'd like to see what's in the diagnostic logs of a Huawei B535 router. It exports a ZIP file which contains one folder (/var). The folder contains one file: diagnose_enc.tar. I can unpack this from the ZIP. However, if I double-click this file in Total Commander, all I get is "Error in packed file ... !".

Is there anything else that needs to be set up in order for tar (un)packing to work in TotalCmd?

Unless the issue might be elsewhere - namely if I use "tar -xvf diagnose_enc.tar" in command prompt, I also get an error: "tar: Error opening archive: Unrecognized archive format".
User avatar
nsp
Power Member
Power Member
Posts: 1844
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: How to untar...

Post by *nsp »

If you have a format error also on command line, this probably mean that your tar file is probably compessed gzip, bzip2,..... The first advise is to find what is the file format. You can use trid .
Renanme the extension to match the best guessed format tgz, tar.bzip2,... Normally 7zip should be able to decompress at least to the next step. Using total7zip plugin should probably help to decompress inside TC once renamed...

You can also give a try to bsdtar from libarchive project on github. (msvc compilded artifact)
--Edited
User avatar
commodore
Member
Member
Posts: 160
Joined: 2005-08-03, 12:55 UTC

Re: How to untar...

Post by *commodore »

Trid reports:
98.1% (.PGC) PGN (Portable Gaming Notation) Compressed format (1000/1)
1.8% (.DBF) Sybase iAnywhere database files (19/3)

Could it also be possible it's some sort of Huawei proprietary encryption (so that "only they" can open it)?
User avatar
Dalai
Power Member
Power Member
Posts: 9568
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: How to untar...

Post by *Dalai »

commodore wrote: 2024-09-14, 06:52 UTCIs there anything else that needs to be set up in order for tar (un)packing to work in TotalCmd?
No, there's nothing to do since TC can work with .tar archives out of the box. However, the archive is highly likely to be encrypted, obfuscated or a proprietary archive format if it contains sensitive data. I'm not saying this is the case, but it's possible.

Have you tried opening or extracting it with 7-zip?
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6608
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: How to untar...

Post by *Horst.Epp »

I guess the _enc part of the file name means it is encrypted.
Windows 11 Home x64 Version 23H2 (OS Build 22631.4249)
TC 11.50b1 x64 / x86
Everything 1.5.0.1383a (x64), Everything Toolbar 1.5.1, Listary Pro 6.3.1.81
QAP 11.6.3.3 x64
User avatar
nsp
Power Member
Power Member
Posts: 1844
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: How to untar...

Post by *nsp »

As guessed by @Horst.Epp, the tar file is probably encoded. You can ask directly to huawei support if it is possible to decompress the file and if you can get the proprietary pgm. You can also ask if it is possible to access your router with an ssh console and get raw log files if not encoded.
Post Reply