Debian Codegraph @

README

raw
1
2 FOREMOST
3 ----------------------------------------------------------------------
4
5 Foremost is a Linux program to recover files based on their headers and
6 footers. Foremost can work on image files, such as those generated by dd,
7 Safeback, Encase, etc, or directly on a drive. The headers and footers are
8 specified by a configuration file, so you can pick and choose which
9 headers you want to look for.
10
11
12
13 --------------------------------------------
14 INSTALL FOREMOST
15 --------------------------------------------
16
17 To run foremost, you must:
18
19 - uncompress the archive
20 - compile
21 - install
22
23 Here's how to do it:
24
25 LINUX:
26 $ tar zxvf foremost-xx.tar.gz
27 $ cd foremost-xx
28 $ make
29 $ make install
30
31 BSD:
32 $ tar zxvf foremost-xx.tar.gz
33 $ cd foremost-xx
34 $ make unix
35 $ make install
36
37 SOLARIS:
38 $ tar zxvf foremost-xx.tar.gz
39 $ cd foremost-xx
40 $ make solaris
41 $ make install
42
43 OSX:
44 $ tar zxvf foremost-xx.tar.gz
45 $ cd foremost-xx
46 $ make mac
47 $ make macinstall
48
49 On systems with older versions of glibc (earlier than 2.2.0), you will get
50 some harmless warnings about ftello and fseeko not being defined. You can
51 ignore these.
52
53
54 If you ever need to remove foremost from your system, you can do this:
55
56 $ make uninstall
57
58
59
60 --------------------------------------------
61 USING FOREMOST
62 --------------------------------------------
63
64 A description of the command line arguments can be found in the man page.
65 To view it:
66
67 $ man foremost
68
69
70
71 --------------------------------------------
72 CONFIGURATION FILE FORMAT
73 --------------------------------------------
74
75 The configuration file is used to control what types of files foremost
76 searches for. A sample configuration file, foremost.conf, is included with
77 this distribution. For each file type, the configuration file describes
78 the file's extension, whether the header and footer are case sensitive,
79 the maximum file size, and the header and footer for the file. The footer
80 field is optional, but header, size, case sensitivity, and extension are
81 not!
82
83 Any line that begins with a '#' is considered a comment and ignored. Thus,
84 to skip a file type just put a '#' at the beginning of that line
85
86 Headers and footers are decoded before use. To specify a value in
87 hexadecimal use \x[0-f][0-f], and for octal use \[1-9][1-9][1-9]. Spaces
88 can be represented by \s. Example: "\x4F\123\I\sCCI" decodes to "OSI CCI".
89
90 To match any single character (aka a wildcard) use a '?'. If you need to
91 search for the '?' character, you will need to change the 'wildcard' line
92 *and* every occurrence of the old wildcard character in the configuration
93 file. Don't forget those hex and octal values! '?' is equal to 0x3f and
94 \063.
95
96 Here's a sample set of headers and footers:
97
98 # extension case-sens max-size header footer (option)
99 #
100 # GIF and JPG files (very common)
101 gif y 155000 \x47\x49\x46\x38\x37\x61 \x00\x3b
102 gif y 155000 \x47\x49\x46\x38\x39\x61 \x00\x00\x3b
103 jpg y 200000 \xff\xd8\xff \xff\xd9
104
105 Note: the option is a method of specifying additional options. Current the following options exist:
106
107 FORWARD: Specify to search from the header to the footer (optional) up to the max-size.
108 REVERSE: Specify to search from the footer to the header up to the max-size.
109 NEXT: Specify to search from the header to the data just past the footer. This allows you to specify data that you know is 'NOT' in the data you are looking for and should terminated the search, up to the max-size.
110
111 --------------------------------------------
112 BUG REPORTING
113 --------------------------------------------
114
115 Please report ALL bugs to nick dot mikus AT gmail d0t com. Please include a
116 description of the bug, how you found it, and your contact information.
117
118
119
120
121 --------------------------------------------
122 CREDITS AND THANKS
123 --------------------------------------------
124
125 Foremost was written by Special Agent Kris Kendall and Special Agent Jesse
126 Kornblum of the United States Air Force Office of Special Investigations
127 starting in March 2001. This program would not be what it is today without
128 help from (in no particular order): Rob Meekins, Dan Kalil, and Chet
129 Maciag. This project was inspired by CarvThis, written by the Defense
130 Computer Forensic Lab in 1999.
131
132
133 --------------------------------------------
134 LEGAL NOTICE
135 --------------------------------------------
136
137 dd, Safeback, and Encase are copyrighted works and any questions regarding
138 these tools should be directed to the copyright holders. The United States
139 Government does not endorse the use of these or any other imaging tools.