mirror of
https://github.com/nigelbarink/R3c0v3r.git
synced 2026-02-14 02:10:50 +00:00
beffbd85b67b94bf9fb066a5a7b79d68bca96858
Rec0v3r h4rv4rd
CS50
Goal:
Implement a program that recovers JPEGs from a forensic image, per the below.
$ ./recover card.raw
Specification
Implement a program called recover recover that recovers JPEGs from a forensic image.
-
Implement your program in a file called
recover.cin a directory calledrecover -
Your program should accept exactly one command-line argument, the name of a forensic image from which to recover JPEGs.
-
If your program is not executed with exactly one command-line argument, it should remind the user of correct usage, and
mainshould return1. -
Your program, if it uses
malloc, must not leak any memory.
Usage
Your program should behave per the examples below.
$ ./recover
Usage: ./recover image
$ ./recover card.raw
Languages
C
59.6%
Lua
40.4%