Syntaxe a utiliser pour creer Photorec.sig

Utiliser PhotoRec pour récupérer des données perdues
Locked
Message
Author
Joao
Posts: 2
Joined: 10 May 2012, 13:12

Syntaxe a utiliser pour creer Photorec.sig

#1 Post by Joao »

(utilisateur - pas developpeur ni programmeur)

Christophe,

Photorec marche tres bien (Win64).

Question: je repère tres bien en hexa le header d'un type de fichier non reconnu par defaut par PhotoRec (ipt, iam, idw autodesk).

Extension: ipt
Header: 00000000 D0 CF 11 E0 A1 B1 1A E1

=> Quelle syntaxe utiliser pour créer le Photorec.sig ?
=> Oui j'ai utilisé fidentify sur des echantillons mais il ne me retourne pas de ligne utilisable dans le log.

Oui j'ai cherché et lu les docs on-line - en particulier celui c/c ci-dessous.

Merci

Joao

------------------------------------------------------------------------
fidentify.log:

Thu May 10 08:37:48 2012
Command line: fidentify

fidentify 6.14-WIP, Data Recovery Utility, May 2012
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
555 first-level signatures enabled
--------------------------------------------------------------------------

Signature Syntax

The file must contain one signature definition per line. A signature is composed of
extension name
offset of the signature
signature or magic value

The magic value can be composed of

a string, ie "data". Special characters can be escaped like "\b", "\n", "\r", "\t", "\0" or "\\".

hexadecimal data, ie 0x12, 0x1234, 0x123456... Note that 0x123456, 0x12 0x34 0x56 and 0x12, 0x34, 0x56are equivalents.

space or comma delimiters are ignored

By using an hexadecimal editor, you can see that the pfi file from our example begins by a distinctive string.
[kmaster@adsl ~]$ hexdump -C /home/kmaster/src/testfiles/sample.pfi | head
00000000 50 68 6f 74 6f 46 69 6c 74 72 65 20 49 6d 61 67 |PhotoFiltre Imag|
00000010 65 03 40 06 00 00 b0 04 00 00 40 19 01 00 40 19 |e.@.......@...@.|
00000020 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|

The signature can be written as

pfi 0 "PhotoFiltre Image"

User avatar
Fiona
Posts: 2835
Joined: 18 Feb 2012, 17:19
Location: Ludwigsburg/Stuttgart - Germany

Re: Syntaxe a utiliser pour creer Photorec.sig

#2 Post by Fiona »

//I'll move your topic to the french PhotoRec section.

regards

Fiona

User avatar
remy
Posts: 457
Joined: 25 Mar 2012, 10:21
Location: Strasbourg, France.
Contact:

Re: Syntaxe a utiliser pour creer Photorec.sig

#3 Post by remy »

dans le fichier photorec.sig :
ipt 0 0xD0CF11E0A1B11AE1

Joao
Posts: 2
Joined: 10 May 2012, 13:12

Re: Syntaxe a utiliser pour creer Photorec.sig

#4 Post by Joao »

OK merci j'essaye.

User avatar
remy
Posts: 457
Joined: 25 Mar 2012, 10:21
Location: Strasbourg, France.
Contact:

Re: Syntaxe a utiliser pour creer Photorec.sig

#5 Post by remy »

des news ? Tu risques de retrouver des fichiers dont la taille sera faussée. Mais si le contenu est bon (mais trp grand), préviens, je verrai avec Christophe si il y a moyen de faire mieux (avec une détection de fin ou de structure).

Locked