Page 1 of 1

Clarification on creating Custom Known File type please

Posted: Mon Mar 26, 2012 8:59 pm
by Mephisto_VI
After having read the help document about said topic, I had a few questions. It mentions both a signature and magic number being usable to create the definition, yet nowhere is it discussed how to input a magic number into the .xml file we need to create so the software can specifically look for it. Is it different than how to specify the signature? If so, how is it different and what is the syntax for it? On to the next question, can we specify multiple file types in one .xml file as long as we have the pertinent information? Do we need any kind of separators in between each definition?

Re: Clarification on creating Custom Known File type please

Posted: Tue Mar 27, 2012 2:03 am
by Alt
Mephisto_VI wrote: On to the next question, can we specify multiple file types in one .xml file as long as we have the pertinent information? Do we need any kind of separators in between each definition?
It's easy.
<FileType id="2" group="archive" description="ARJ Archive" extension="arj">
<Signature offset="3" count="1">Abc\x5c\x00\x04</Signature>
<Signature offset="9" count="2">\x23\x01\xf4</Signature>
</FileType>
<FileType id="3" group="My group" description="My FileType" extension="bpr">
<Signature offset="1" count="1">Abcdefgs</Signature>
<Signature offset="9" count="1">The End signature</Signature>
</FileType>
And so on.