Page 1 of 1

Custom extensions based of txt

Posted: 10 Aug 2016, 22:57
by ymiaw
I have a bunch of files in my corrupted drive which have extensions like .gplan and .dplan, though they are nothing more than plain text files--the extensions are purely to get them to get syntax highlighting in Notepad++.

According to fidentify, those extensions are unkown. However I can't create a signature for them because they are just plain text files and thus have no specific hex header to look for. How can I get these extensions recognized during search?

Re: Custom extensions based of txt

Posted: 11 Aug 2016, 21:13
by cgrenier
Please share some file samples...

Re: Custom extensions based of txt

Posted: 18 Sep 2016, 09:27
by antidot
Hello, I have the exact same problem : I'm trying to recover markdown files. The files I'm trying to recover are basically files created with Atom editor and saved with md extensions, or txt files created with Notepad and changed to md extension manually.

In both cases the files cannot be identified by fidentify ("unknown"). Looking at the hex dump of those files does not show any "magic value", it is just plain text.

However other markdown files such as those on github (example on Testdisk's github can be found here : https://raw.githubusercontent.com/cgsec ... /README.md) are properly recognized by fidentify as "txt", although, from what I see from hex version this README.md, there is no magic value either.

Please find sample files attached (sample.md and sample-2.md being not identified by fidentify, while README.md is).

Re: Custom extensions based of txt

Posted: 18 Sep 2016, 17:42
by cgrenier
fidentify and photorec will failed to detect text files if they are smaller than 100 bytes or if the index of coincidence is not between 0.03 and 0.90.

Re: Custom extensions based of txt

Posted: 20 Sep 2016, 14:22
by antidot
Thank you very much, that explains it all.

Once again, thank you for that awesome software.