GithubHelp home page GithubHelp logo

Comments (2)

int0x80 avatar int0x80 commented on July 22, 2024

My general blackbox method is to take a collection of the files in question (*.skp), examine the first 8-16 bytes of each file, then manually look for common patterns. Here is an example with pdf files.

$ find . -iname "*.pdf" -type f 2>/dev/null | while read filename; do 
  dd if="${filename}" bs=8 count=1 2>/dev/null | xxd; 
done

The output looks like:

00000000: 2550 4446 2d31 2e33                      %PDF-1.3
00000000: 2550 4446 2d31 2e34                      %PDF-1.4
00000000: 2550 4446 2d31 2e36                      %PDF-1.6

Based on that, I could add a signature to the scalpel config like:

pdf                                 y    2500000    \x25\x50\x44\x46\x2d\x31\x2e

It appears that scalpel after 1.90 supports regex in the config, so something like this might work:

pdf                                 y    2500000    %PDF-1.[0-9]

Note that 2500000 is an arbitrary number. You may need to increase that value if the files you want to carve are larger than this.

Additionally it's possible someone online has documented the file format with more detail or you might be able to reverse engineer an application which parses/loads .skp files to see what bytes they examine and how they are processed. This is asserting that the application does a sanity check to verify the file has a valid format.

Lastly, please submit a pull request if you derive a robust signature. Best wishes and good luck on your file recovery (boa sorte)!

from anti-forensics.

TCMiranda avatar TCMiranda commented on July 22, 2024

Thank you for the detailed explanation! I really appreciate it.
Best regards!

from anti-forensics.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.