[File] [PATCH] of Magdir/archive for Foxit add-on/update (*.fzip)

Jörg Jenderek joerg.jen.der.ek at gmx.net
Sat Feb 16 00:36:39 UTC 2019


Hello,

some days ago i use internal updater of foxit reader. This is a
proprietary PDF reader, but at least there exist ports of this tool for
Linux and windows. Furthermore it is an alternative to all present
Acrobat Reader and i like to have the same look-and-feeling on my
different systems. The update process stores files on windows system
in directories under "%APPDATA%\Foxit Software\Addon\Foxit
Reader\Install". The file name extension is 'fzip'. This is now
expressed by additional magic line
 !:ext	fzip
The purpose of these files is described in knowledge base of foxit
software. So add that URL as remark line like
 # https://help.foxitsoftware.com/kb/install-fzip-file.php
When i run run file command version 5.35 on the Foxit add-on/updates
files are described as "data".

The File identifying utility TrID ( See
http://mark0.net/soft-trid-e.html) identifies such FZIP-files correctly
as "Foxit Reader Add-on" by definition fzip.trid.xml found in trid
database package triddefs_xml.7z. So i add that url as reference by
comment line like
 # reference:	http://mark0.net/download/triddefs_xml.7z/
 #		defs\f\fzip.trid.xml
The trid pattern expressed as magic line looks like
 0	ubequad	0x2506781901010000	Foxit add-on/update
The phrase "fzip" implies something like abbreviation for "foxit zip",
but such files are compressed with an method, i do not know and no
"PK" zip magic is found in such files. So mentioned this fact as note.
Only readable strings at the end of files looks like "Update.exe"
"setup.xml". So this seems to be a kind of auto executable SFX. So i add
magic lines inside Magdir/archive after last zip alike pattern. That was
"RZIP". And mime type is expressed by user defined typ via line
 !:mime	application/x-fzip

After applying the above mentioned modifications by patch
file-5.35-archive-fzip.diff then all inspected examples are now
described like:

fileopen_plugin_reader_7.1.0.106_10.fzip: Foxit add-on/update
firefox_plugin_reader_2.2.5.1013_3.fzip:  Foxit add-on/update
fpdfcjk_reader_2.3.0.312_2.fzip:          Foxit add-on/update
OCR_Lang_Dutch_1.7.0.505.fzip:            Foxit add-on/update
pdfa_Phantom_2.4.0.411_2.fzip:            Foxit add-on/update
Reader_9.0.0.29935.fzip:                  Foxit add-on/update
Reader_ML_9.4.0.16811.fzip:               Foxit add-on/update
Reader_ML_9.4.1.16828.fzip:               Foxit add-on/update
UpdatePluginsReader_9.2.0.9182.fzip:      Foxit add-on/update
UpdatePluginsReader_9.4.0.16807.fzip:     Foxit add-on/update

I hope my diff file can be applied in future version of file utility.

With best wishes
Jörg Jenderek
-- 
Jörg Jenderek














-------------- next part --------------
--- file-5.35/magic/Magdir/archive.old	2018-04-25 00:19:45 +0000
+++ file-5.35/magic/Magdir/archive	2019-02-07 01:12:37 +0000
@@ -1304,10 +1304,20 @@
 0	string	RZIP		rzip compressed data
 >4	byte	x		- version %d
 >5	byte	x		\b.%d
 >6	belong	x		(%d bytes)
 
+# From:		Joerg Jenderek
+# URL:		https://help.foxitsoftware.com/kb/install-fzip-file.php
+# reference:	http://mark0.net/download/triddefs_xml.7z/
+#		defs/f/fzip.trid.xml
+# Note: unknown compression; No "PK" zip magic; normally in directory like
+#	"%APPDATA%\Foxit Software\Addon\Foxit Reader\Install"
+0	ubequad	0x2506781901010000	Foxit add-on/update
+!:mime	application/x-fzip
+!:ext	fzip
+
 # From: "Robert Dale" <robdale at gmail.com>
 0	belong	123		dar archive,
 >4	belong	x		label "%.8x
 >>8	belong	x		%.8x
 >>>12	beshort	x		%.4x"


More information about the File mailing list