mirror of
https://github.com/nigelbarink/R3c0v3r.git
synced 2026-02-14 02:10:50 +00:00
Initial setup
This commit is contained in:
14
.gitignore
vendored
Normal file
14
.gitignore
vendored
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# ignore binary directories
|
||||||
|
bin/
|
||||||
|
build/
|
||||||
|
results/
|
||||||
|
rsc/
|
||||||
|
# Ignore Visual studio
|
||||||
|
.vs/
|
||||||
|
obj/
|
||||||
|
*.vcxproj.user
|
||||||
|
*.vcxproj
|
||||||
|
*.sln
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
24
premake4.lua
Normal file
24
premake4.lua
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
#!lua
|
||||||
|
solution "Rec0ver_H4rv4rd"
|
||||||
|
|
||||||
|
configurations { "Debug", "Release" }
|
||||||
|
|
||||||
|
project "Rec0ver Program"
|
||||||
|
basedir "./"
|
||||||
|
language "C"
|
||||||
|
|
||||||
|
files {
|
||||||
|
"src/recover.c"
|
||||||
|
}
|
||||||
|
|
||||||
|
kind "ConsoleApp"
|
||||||
|
targetname "recover"
|
||||||
|
targetdir "build/debug"
|
||||||
|
|
||||||
|
configuration "Debug"
|
||||||
|
defines {"DEBUG"}
|
||||||
|
Symbols "On"
|
||||||
|
|
||||||
|
configuration "Release"
|
||||||
|
defines {"NDEBUG"}
|
||||||
|
Optimize "On"
|
||||||
34
readme.md
Normal file
34
readme.md
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# Rec0v3r h4rv4rd
|
||||||
|
## CS50
|
||||||
|
|
||||||
|
### Goal:
|
||||||
|
__Implement a program that recovers JPEGs from a forensic image, per the below.__
|
||||||
|
|
||||||
|
```cmd
|
||||||
|
$ ./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.c`` ~~in a directory called ``recover``~~
|
||||||
|
|
||||||
|
* 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 ``main`` should return ``1``.
|
||||||
|
|
||||||
|
* Your program, if it uses ``malloc``, must not leak any memory.
|
||||||
|
|
||||||
|
### Usage
|
||||||
|
|
||||||
|
Your program should behave per the examples below.
|
||||||
|
|
||||||
|
```cmd
|
||||||
|
$ ./recover
|
||||||
|
Usage: ./recover image
|
||||||
|
```
|
||||||
|
|
||||||
|
```cmd
|
||||||
|
$ ./recover card.raw
|
||||||
|
```
|
||||||
|
|
||||||
7
src/recover.c
Normal file
7
src/recover.c
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
printf("Hello world!");
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user