Identify if a file is packed or not
Moderators: Hacker, petermad, Stefan2, white
Identify if a file is packed or not
Hi
Is there a plugin that can identify if a file is packed or not?
I'm not interested in identifying what type of file it is or it's contents, just if it is packed or not and what packer it is if possible.
Scenario:
Folder contains 1000 text files. Prefix is .txt for all files, but some may be packed, majority aren't. I'd like to identify those packed ones. Probably no exotic packer used, i.e. zip/pk, rar, arj etc. Just be quicker to find the packed files and unpack in a TC window.
Is there a plugin that can identify if a file is packed or not?
I'm not interested in identifying what type of file it is or it's contents, just if it is packed or not and what packer it is if possible.
Scenario:
Folder contains 1000 text files. Prefix is .txt for all files, but some may be packed, majority aren't. I'd like to identify those packed ones. Probably no exotic packer used, i.e. zip/pk, rar, arj etc. Just be quicker to find the packed files and unpack in a TC window.
Re: Identify if a file is packed or not
This makes no sense. With F3 you can see if whether is a text file (or not). Files are recognized by their extensions like .zip or .rar. When someone makes a blooper by giving them the extension .txt TC is not there to solve this problem. Besides you cannot be sure that an packer is used, e.g. an executable is also unreadable.
Re: Identify if a file is packed or not
So Press F3 on a 1000 files to see if it's packed or not?vdijken wrote: 2022-07-20, 13:58 UTC This makes no sense. With F3 you can see if whether is a text file (or not). Files are recognized by their extensions like .zip or .rar. When someone makes a blooper by giving them the extension .txt TC is not there to solve this problem. Besides you cannot be sure that an packer is used, e.g. an executable is also unreadable.
The first 2 or 3 bytes will tell what packer was used, RaR, PK, ARJ etc. This was something I just discovered, that some files were packed, I just wanted to identify those files, with a plugin (if there was one) and not TC per se. Yes I can be sure a packer was used because the first 2 or 3 bytes tell me so. Everything is a data file not an executable. Some of these files are from retro machines like the Amiga, so this was the norm back in the day for files to be packed like this. Mostly the files I've seen so far were PKzip type. I can't search for the string PK because the files could contain lots a references to PK in them.
Re: Identify if a file is packed or not
2Axxy
To find zip-compressed file you can do the following
Open the Find files dialog
Activate the "Find text" field and write: ^PK
Check the "Case sensitive" boks.
Check the" RegEx (2)" boks.
Start the search - it should find all files that has PK as the first two characters - as zip-compressed files does.
To Search for rar-files use: ^Rar
To Search for 7z-files use: ^7z
To Search for cab-files use: ^MSCF
It is NOT fool proof - but should help if the other non packed files are genuine text files
To find zip-compressed file you can do the following
Open the Find files dialog
Activate the "Find text" field and write: ^PK
Check the "Case sensitive" boks.
Check the" RegEx (2)" boks.
Start the search - it should find all files that has PK as the first two characters - as zip-compressed files does.
To Search for rar-files use: ^Rar
To Search for 7z-files use: ^7z
To Search for cab-files use: ^MSCF
It is NOT fool proof - but should help if the other non packed files are genuine text files
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Identify if a file is packed or not
Hipetermad wrote: 2022-07-20, 15:08 UTC 2Axxy
To find zip-compressed file you can do the following
Open the Find files dialog
Activate the "Find text" field and write: ^PK
Check the "Case sensitive" boks.
Check the" RegEx (2)" boks.
Start the search - it should find all files that has PK as the first two characters - as zip-compressed files does.
To Search for rar-files use: ^Rar
To Search for 7z-files use: ^7z
To Search for cab-files use: ^MSCF
It is NOT fool proof - but should help if the other non packed files are genuine text files
As you say, not fool proof but much closer in the number of hits (or lack of) than I was getting making it easier to check. Thanks a lot, appreciated..
Re: Identify if a file is packed or not
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: Identify if a file is packed or not
With the plugin encinfo: http://totalcmd.net/plugring/EncInfo.html you can search for binary or text files.
https://madsenworld.dk/tcmd/encinfosearch.png
https://madsenworld.dk/tcmd/encinfosearch.png
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Identify if a file is packed or not
This plugin gives me no results.Hacker wrote: 2022-07-20, 16:55 UTC Axxy,
The TrID_Identifier plugin is very useful to identify various file types.
HTH
Roman
The trid tool and its library are installed in the plugins dir as requested
and work from a command line.
A custom columns view with all available fields only shows "-"
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Re: Identify if a file is packed or not
Utility and definitions should be in "TrID" subdirectory of the plugin.
Anyway this plugin is sometimes very slow - especially for large files.
For quick identification i mostly use DecHex plugin - https://totalcmd.net/plugring/decHex.html
Anyway this plugin is sometimes very slow - especially for large files.
For quick identification i mostly use DecHex plugin - https://totalcmd.net/plugring/decHex.html
Re: Identify if a file is packed or not
Thanks for the tip, it works now.Gral wrote: 2022-07-20, 18:00 UTC Utility and definitions should be in "TrID" subdirectory of the plugin.
Anyway this plugin is sometimes very slow - especially for large files.
For quick identification i mostly use DecHex plugin - https://totalcmd.net/plugring/decHex.html
Windows 11 Home, Version 24H2 (OS Build 26100.4061)
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
TC 11.55 RC2 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.4 x64
Re: Identify if a file is packed or not
EncInfo that @petermad mentioned is most suited to what OP is asking. It can easily identify binary files, either by searching for those or as custom column info that can be sorted upon.
Afterwards, for manual identifying type of binary file, plugin Textline can be used. It displays the first line of the file in the custom column.
Afterwards, for manual identifying type of binary file, plugin Textline can be used. It displays the first line of the file in the custom column.
Re: Identify if a file is packed or not
Use WDX part of Total7zip packer plugin - can identify most popular packed files regardless of extension.
http://totalcmd.net/plugring/total7zip.html
(manual installation needed)
http://totalcmd.net/plugring/total7zip.html
(manual installation needed)
Re: Identify if a file is packed or not
Works fine: https://madsenworld.dk/tcmd/archivetypecustcol.pngGral wrote: 2022-07-22, 15:28 UTC Use WDX part of Total7zip packer plugin - can identify most popular packed files regardless of extension.
http://totalcmd.net/plugring/total7zip.html
(manual installation needed)
You have to manually add something like this to the [ContentPlugins] section of your ini file:
Code: Select all
xx=%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: Identify if a file is packed or not
Or just copy Total7zip.wcx to Total7zip.wdx to make it visible in TC intall content plugins windows.petermad wrote: 2022-07-22, 20:22 UTC
You have to manually add something like this to the [ContentPlugins] section of your ini file:Rreplace xx with the next free numer in that section.Code: Select all
xx=%COMMANDER_PATH%\PLUGINS\wcx\Total7zip\Total7zip.wcx