The Competition:
- The first person who wins each category wins:
- Easy: 1 point
- Medium: 2 points
- Hard: 3 points
- Each user can answer ONE (1) difficulty level.
- Each challenge closes in 7 days if there isn't a winner.
- The competition will take place over several weeks, and will consist of several challenges, like the one you are about to undertake.
- At the end of the competition, scores for each user will be counted up, and the user with the most points wins a prize!
File Carving Basics
1. JPEG
So what exactly is file carving? File carving is the process of finding corrupted or hidden files within a larger file. This larger file could be something as simple as a text document, or as complex (or easy, depending how you look at it) as a disk image. Our goal is to try to recover a file, whether contiguous or in pieces (fragmented). To do this, there are a few techniques we can try. However, today I'm going to stick with what I consider to be the easiest: header/footer analysis.
![]() |
Figure 1 |
Figure 2 |
2. Carving Files
When carving a file, you're usually going to be trying to recover a file from a disk image, that is, a bit by bit copy of some type of media. This media can range anywhere from a few megabytes on a floppy drive, to a few terabytes on a modern hard drive. Obviously, the smaller the disk image the easier it will be to carve out files. In file carving, you're going to basically be "undeleting" a file. When you delete a file, it usually isn't overwritten immediately. Rather, it is given the label "overwrite me if you need to", so it's really still there. Sometimes bits and pieces are overwritten, so you need to carve out the pieces you need.
![]() |
Figure 3 |
![]() |
Figure 4 |
The next part is to reconstruct the image file. Open up the disk image in a hex editor, and go to offset 00022000, the header. Delete all data prior to FF D8. Then, go to the FF D9 (you can just do a search for "ffd8" in the hex editor at this point) and delete all data after it. Save the new file a .jpg, and BAM! It's the picture we were after!
Now how on Earth is this useful at all? Well, it's funny you ask that. What happens if you're working late in the night on a research paper, only to delete it by accident the next day. What do you do? Call in a professional data retriever? Not anymore you don't! Basically, just scale what we just did up to a hard drive of say 500 GB and do the same thing. Just use a LiveCD to get the hard drive image onto other media. But you can mix it up a bit, since some of the information will be in plain text. You could search the disk image file for, say "The effect of Gatorade on lilies" if you know that that piece of texts exists in your file. Its that easy, and data retrieval companies charge hundreds of dollars to do it.
Competition:
Now for the fun part. I'm going to provide 3 disk images, each 500 KB each. As per the above rules, try your best to discover the hidden JPEG in each. Each JPEG will be a picture of a phrase. If you find and post this phrase under the comment section, you win that difficulty level! Feel free to try them all, but remember, you can only post the answer/attempted answer for ONE difficulty level. Good luck, and make sure to utilize the above techniques!
Hint for Hard: What if there's more than one image in a disk image?
Download Files Here
Good idea KB, I don't have time to participate myself right now. I will have to do it later.
ReplyDeleteThis is the first tech advise Ive understood and can use. Thanks for sharing.
ReplyDeleteWOw this is pretty cool information.
ReplyDeletecool info
ReplyDeleteExcellent info!
ReplyDeleteThis is interesting stuff KB.
ReplyDeleteSorry, I'm same as Andriod... on this. : I
ReplyDeleteToo bad I'm on a mac, wanted to try it :(
ReplyDeletegood blog one, follower +
This seems like something spies would do.
ReplyDeleteJohn A.S: that alright, you can still do it on a Mac. Just download a hex editor that works on OSX (there's a lot of them) and you're all set
ReplyDeletethis looks exciting
ReplyDeleteman this looks hard.... I'll give it a go though
ReplyDeletegreat background on this, bro!
ReplyDeleteI might be too late, but I'm going to try. Wish me luck!
ReplyDeleteUPDATE: the competition is now ongoing! That means you have as much time as you need to complete it. The redesigned site will have a designated score page.
ReplyDelete