Clarification on creating Custom Known File type please

A forum on data recovery using the professional data recovery software R-STUDIO.
Mephisto_VI
Posts: 1
Joined: Mon Mar 26, 2012 8:28 pm

Clarification on creating Custom Known File type please

Post by Mephisto_VI » Mon Mar 26, 2012 8:59 pm

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?

Alt
Site Moderator
Posts: 3129
Joined: Tue Nov 11, 2008 2:13 pm
Contact:

Re: Clarification on creating Custom Known File type please

Post by Alt » Tue Mar 27, 2012 2:03 am

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.

Post Reply