custom extension's signature at the end

Using PhotoRec to recover lost data
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
elaci0
Posts: 3
Joined: 25 Jun 2017, 22:02

custom extension's signature at the end

#1 Post by elaci0 »

Hello there and thanks for the great piece of software!
I was wondering if you plan to add a signature check that "starts" from the end of the file to work in couple with the signature at its beginning.
e.g., I'm trying to recover some SVG files from inkscape, some files seems to be ok some others don't and looking at the recovered files I see that a lot of other stuff is "added" after the "/<svg>" which closes a file.

a.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: custom extension's signature at the end

#2 Post by cgrenier »

Can you check the end of the recovered file ? I think there is a </svg> tag at the end.
PhotoRec truncate the file after the last </svg> tag.

elaci0
Posts: 3
Joined: 25 Jun 2017, 22:02

Re: custom extension's signature at the end

#3 Post by elaci0 »

I'm afraid it's not skipping the rest of the "file":

Code: Select all

  <g
     inkscape:groupmode="layer"
     id="layer3"
     inkscape:label="Drawing Area" />
</svg>
^@^@^@^@   <------ tons of binary data like this but other too

..and I've many recovered files like this. I guess (still have to try) that in this case cutting the file by hand may help with the recovery.
this is why I've asked if there could be the possibility to "cut" the file at the ending signature.
with regards,
a.

User avatar
cgrenier
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: custom extension's signature at the end

#4 Post by cgrenier »

Can you provide a recovered svg file ?
Thanks

elaci0
Posts: 3
Joined: 25 Jun 2017, 22:02

Re: custom extension's signature at the end

#5 Post by elaci0 »

Sorry, I was away.
Do you mean a tipical SVG working file or something "bad" recovered by Photorec? I'm afraid the latter might be very huge but you can get it from here:
http://psy.cns.sissa.it/DOWN/f142623648.svg.gz

thanks a lot!

Locked