GithubHelp home page GithubHelp logo

0xbadcoffe / jpeghunt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hamsternz/jpeghunt

0.0 0.0 0.0 4 KB

Hunt out JPEG (JFIF/EXIF) files in hard disk images and extracts them

License: MIT License

Makefile 1.85% C 98.15%

jpeghunt's Introduction

jpeghunt

Hunt out JPEG (JFIF/EXIF) files in hard disk images and extracts them.

NOTE - THIS IS A HACK!

I had an external 240GB USB drive that would not stay mounted - it was due to some failed sectors.

It had some photos on it I wanted to keep, so I used DDRESCUE to extract most of the data from the drive into an image file, but it was still not mountable or FSCKable.

I then wrote this to hunt out JPEG images and extract them. Results were Surprisingly good. Got back 40k+ images, with nearly all of them being perfect.

Usage

Build with "make"

make

Create an directory called "out":

mkdir out

The run against whatever your disk image is called:

./jpeghunt disk.img

It reports progress along thw way

Extracted 'out/0000000241.jpg'
Extracted 'out/0000000242.jpg'
Extracted 'out/0000000243.jpg'

1 GB inspected
2000000 sectors inspected
280 start_of_image count
242 APP0 count
93 EXIF count
35 FFED count
403 FFD8 count
0 FFDB count
Extracted 'out/0000000244.jpg'
Extracted 'out/0000000245.jpg'

jpeghunt's People

Contributors

hamsternz avatar

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.