1 | --- configure.orig 2007-07-18 19:32:24.000000000 -0400 |
---|
2 | +++ configure 2007-07-18 20:12:02.000000000 -0400 |
---|
3 | @@ -79,28 +79,29 @@ |
---|
4 | # If it wasn't found, then prompt for it. |
---|
5 | if (test $found -eq 0) then |
---|
6 | echo 'ERROR: perl not found or the incorrect version found'; |
---|
7 | - while (test 1 -eq 1) |
---|
8 | - do echo 'Enter location of perl executable:'; |
---|
9 | - read perlexe; |
---|
10 | - if (test -x "$perlexe") then |
---|
11 | - if (test -n "`$perlexe -v 2> /dev/null | awk '/This is perl/ {print $0}'`") then |
---|
12 | - ver=`$perlexe -v 2> /dev/null | awk '/This is perl,/ {print $4}'`; |
---|
13 | - if (test "$ver" '<' "v5.8.0") then |
---|
14 | - echo "This version of Perl is too old, 5.8.0 or older needed"; |
---|
15 | - else |
---|
16 | - echo "Correct version found"; |
---|
17 | - echo "#!${d}perl -wT" > ./config.tmp; |
---|
18 | - echo "#!${d}perl" > ./config2.tmp; |
---|
19 | - found=1; |
---|
20 | - break; |
---|
21 | - fi; |
---|
22 | - else |
---|
23 | - echo "Perl found, but is not working. Try another"; |
---|
24 | - fi; |
---|
25 | - else |
---|
26 | - echo "file not found"; |
---|
27 | - fi |
---|
28 | - done |
---|
29 | + exit 1; |
---|
30 | +# while (test 1 -eq 1) |
---|
31 | +# do echo 'Enter location of perl executable:'; |
---|
32 | +# read perlexe; |
---|
33 | +# if (test -x "$perlexe") then |
---|
34 | +# if (test -n "`$perlexe -v 2> /dev/null | awk '/This is perl/ {print $0}'`") then |
---|
35 | +# ver=`$perlexe -v 2> /dev/null | awk '/This is perl,/ {print $4}'`; |
---|
36 | +# if (test "$ver" '<' "v5.8.0") then |
---|
37 | +# echo "This version of Perl is too old, 5.8.0 or older needed"; |
---|
38 | +# else |
---|
39 | +# echo "Correct version found"; |
---|
40 | +# echo "#!${d}perl -wT" > ./config.tmp; |
---|
41 | +# echo "#!${d}perl" > ./config2.tmp; |
---|
42 | +# found=1; |
---|
43 | +# break; |
---|
44 | +# fi; |
---|
45 | +# else |
---|
46 | +# echo "Perl found, but is not working. Try another"; |
---|
47 | +# fi; |
---|
48 | +# else |
---|
49 | +# echo "file not found"; |
---|
50 | +# fi |
---|
51 | +# done |
---|
52 | fi |
---|
53 | |
---|
54 | # Check if this version of Perl supports large files |
---|
55 | @@ -109,9 +110,9 @@ |
---|
56 | echo ' NOTE: It appears that your Perl does not support large files.'; |
---|
57 | echo ' You therefore will not be able to analyze images larger than 2GB.'; |
---|
58 | echo ' Download the source version from www.cpan.org and compile a new version.'; |
---|
59 | - echo " [Press Enter to Continue]"; |
---|
60 | - read foo; |
---|
61 | - echo '' |
---|
62 | +# echo " [Press Enter to Continue]"; |
---|
63 | +# read foo; |
---|
64 | +# echo '' |
---|
65 | fi; |
---|
66 | |
---|
67 | # Get current working directory for lib |
---|
68 | @@ -239,19 +240,19 @@ |
---|
69 | done |
---|
70 | |
---|
71 | # Prompt if not found |
---|
72 | -if (test $found -eq 0) then |
---|
73 | - echo 'ERROR: grep utility not found'; |
---|
74 | - echo 'Enter location of executable:'; |
---|
75 | - while (test 1 -eq 1) |
---|
76 | - do read grepexe; |
---|
77 | - if (test -x "$grepexe") then |
---|
78 | - echo \$GREP_EXE = \'$grepexe\'\; >> $conf; |
---|
79 | - break; |
---|
80 | - else |
---|
81 | - echo 'grep was not found (try again):'; |
---|
82 | - fi; |
---|
83 | - done |
---|
84 | -fi |
---|
85 | +#if (test $found -eq 0) then |
---|
86 | +# echo 'ERROR: grep utility not found'; |
---|
87 | +# echo 'Enter location of executable:'; |
---|
88 | +# while (test 1 -eq 1) |
---|
89 | +# do read grepexe; |
---|
90 | +# if (test -x "$grepexe") then |
---|
91 | +# echo \$GREP_EXE = \'$grepexe\'\; >> $conf; |
---|
92 | +# break; |
---|
93 | +# else |
---|
94 | +# echo 'grep was not found (try again):'; |
---|
95 | +# fi; |
---|
96 | +# done |
---|
97 | +#fi |
---|
98 | |
---|
99 | |
---|
100 | |
---|
101 | @@ -270,26 +271,30 @@ |
---|
102 | echo 'Autopsy uses forensic tools from The Sleuth Kit.' |
---|
103 | echo ' http://www.sleuthkit.org/sleuthkit/' |
---|
104 | echo '' |
---|
105 | -echo 'Enter the directory where you installed it:' |
---|
106 | -while (test 1 -eq 1) |
---|
107 | - do read tskdir; |
---|
108 | - if (test -x "${tskdir}/bin/icat") then |
---|
109 | - if (test -x "${tskdir}/bin/fls") then |
---|
110 | +#echo 'Enter the directory where you installed it:' |
---|
111 | +#while (test 1 -eq 1) |
---|
112 | +# do read tskdir; |
---|
113 | +# if (test -x "${tskdir}/bin/icat") then |
---|
114 | +# if (test -x "${tskdir}/bin/fls") then |
---|
115 | +# echo ' Sleuth Kit bin directory was found'; |
---|
116 | +# echo \$TSKDIR = \'${tskdir}/bin\'\; >> $conf; |
---|
117 | +# break; |
---|
118 | +# else |
---|
119 | +# echo 'The Sleuth Kit was not fully found (did you give me a TCT or TASK directory?) (try again):'; |
---|
120 | +# fi |
---|
121 | +# else |
---|
122 | +# echo 'The Sleuth Kit was not found (try again):'; |
---|
123 | +# fi; |
---|
124 | +#done |
---|
125 | +found=0 |
---|
126 | +for d in $dirs |
---|
127 | + do if (test -x ${d}icat) then |
---|
128 | + if (test -x ${d}fls) then |
---|
129 | echo ' Sleuth Kit bin directory was found'; |
---|
130 | - echo \$TSKDIR = \'${tskdir}/bin\'\; >> $conf; |
---|
131 | - break; |
---|
132 | - else |
---|
133 | - echo 'The Sleuth Kit was not fully found (did you give me a TCT or TASK directory?) (try again):'; |
---|
134 | - fi |
---|
135 | - else |
---|
136 | - echo 'The Sleuth Kit was not found (try again):'; |
---|
137 | - fi; |
---|
138 | -done |
---|
139 | - |
---|
140 | - |
---|
141 | + echo \$TSKDIR = \'${d}\'\; >> $conf; |
---|
142 | # Test for latest version |
---|
143 | |
---|
144 | -ver=`"${tskdir}/bin/fls" -V | awk '/The Sleuth Kit ver / {print $5}'`; |
---|
145 | + ver=`"${d}fls" -V | awk '/The Sleuth Kit ver / {print $5}'`; |
---|
146 | echo " Version $ver found"; |
---|
147 | |
---|
148 | |
---|
149 | @@ -299,19 +304,20 @@ |
---|
150 | elif (test "$ver" '<' "$curtskver") then |
---|
151 | echo ''; |
---|
152 | echo "*** NOTE: A more recent version ($curtskver) of The Sleuth Kit Exists ***" |
---|
153 | - echo " [Press Enter to Continue]"; |
---|
154 | - read foo; |
---|
155 | - |
---|
156 | else |
---|
157 | echo ' Required version found'; |
---|
158 | fi |
---|
159 | + break; |
---|
160 | + fi; |
---|
161 | + fi; |
---|
162 | +done |
---|
163 | |
---|
164 | |
---|
165 | # Check that file exists in TSK and if not then use the local |
---|
166 | # version |
---|
167 | -if (test -x "${tskdir}/bin/file") then |
---|
168 | - echo \$FILE_EXE = \'${tskdir}/bin/file\'\; >> $conf; |
---|
169 | -else |
---|
170 | +#if (test -x "${tskdir}/bin/file") then |
---|
171 | +# echo \$FILE_EXE = \'${tskdir}/bin/file\'\; >> $conf; |
---|
172 | +#else |
---|
173 | |
---|
174 | echo '' |
---|
175 | echo '---------------------------------------------------------------' |
---|
176 | @@ -329,20 +335,20 @@ |
---|
177 | done |
---|
178 | |
---|
179 | # Prompt if not found |
---|
180 | -if (test $found -eq 0) then |
---|
181 | - echo 'ERROR: file utility not found'; |
---|
182 | - echo 'Enter location of executable:'; |
---|
183 | - while (test 1 -eq 1) |
---|
184 | - do read fileexe; |
---|
185 | - if (test -x "$fileexe") then |
---|
186 | - echo \$FILE_EXE = \'$fileexe\'\; >> $conf; |
---|
187 | - break; |
---|
188 | - else |
---|
189 | - echo 'file was not found (try again):'; |
---|
190 | - fi; |
---|
191 | - done |
---|
192 | -fi |
---|
193 | -fi |
---|
194 | +#if (test $found -eq 0) then |
---|
195 | +# echo 'ERROR: file utility not found'; |
---|
196 | +# echo 'Enter location of executable:'; |
---|
197 | +# while (test 1 -eq 1) |
---|
198 | +# do read fileexe; |
---|
199 | +# if (test -x "$fileexe") then |
---|
200 | +# echo \$FILE_EXE = \'$fileexe\'\; >> $conf; |
---|
201 | +# break; |
---|
202 | +# else |
---|
203 | +# echo 'file was not found (try again):'; |
---|
204 | +# fi; |
---|
205 | +# done |
---|
206 | +#fi |
---|
207 | +#fi |
---|
208 | |
---|
209 | |
---|
210 | # NSRL |
---|
211 | @@ -353,43 +359,43 @@ |
---|
212 | echo 'hash values of known good and bad files.' |
---|
213 | echo ' http://www.nsrl.nist.gov' |
---|
214 | echo '' |
---|
215 | -echo 'Have you purchased or downloaded a copy of the NSRL (y/n) [n]' |
---|
216 | -read rep; |
---|
217 | -if (test "$rep" = "y") then |
---|
218 | - |
---|
219 | - echo 'Enter the directory where you installed it:' |
---|
220 | - while (test 1 -eq 1) |
---|
221 | - do read nsrldir; |
---|
222 | - if (test "$nsrldir" = "cancel") then |
---|
223 | - echo \$NSRLDB = \'\'\; >> $conf; |
---|
224 | - break; |
---|
225 | - fi; |
---|
226 | - if (test -f "${nsrldir}/NSRLFile.txt") then |
---|
227 | - echo ' NSRL database was found (NSRLFile.txt)'; |
---|
228 | - echo \$NSRLDB = \'${nsrldir}/NSRLFile.txt\'\; >> $conf; |
---|
229 | - |
---|
230 | - if (test -f "${nsrldir}/NSRLFile.txt-md5.idx") then |
---|
231 | - echo ' NSRL Index file found (NSRLFile.txt-md5.idx)'; |
---|
232 | - else |
---|
233 | - echo ' NSRL Index file not found, do you want it created? (y/n) [n]:' |
---|
234 | - read rep; |
---|
235 | - if (test "$rep" = "y") then |
---|
236 | - echo '' |
---|
237 | - echo '-------------- begin hfind output --------------' |
---|
238 | - "${tskdir}/bin/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt"; |
---|
239 | - echo '--------------- end hfind output ---------------' |
---|
240 | - echo '' |
---|
241 | - fi; |
---|
242 | - fi; |
---|
243 | - break; |
---|
244 | - else |
---|
245 | - echo 'The NSRL was not found (the directory should have NSRLFile.txt in it)'; |
---|
246 | - echo 'Enter a new directory (or cancel to stop):'; |
---|
247 | - fi; |
---|
248 | - done |
---|
249 | -else |
---|
250 | +#echo 'Have you purchased or downloaded a copy of the NSRL (y/n) [n]' |
---|
251 | +#read rep; |
---|
252 | +#if (test "$rep" = "y") then |
---|
253 | +# |
---|
254 | +# echo 'Enter the directory where you installed it:' |
---|
255 | +# while (test 1 -eq 1) |
---|
256 | +# do read nsrldir; |
---|
257 | +# if (test "$nsrldir" = "cancel") then |
---|
258 | +# echo \$NSRLDB = \'\'\; >> $conf; |
---|
259 | +# break; |
---|
260 | +# fi; |
---|
261 | +# if (test -f "${nsrldir}/NSRLFile.txt") then |
---|
262 | +# echo ' NSRL database was found (NSRLFile.txt)'; |
---|
263 | +# echo \$NSRLDB = \'${nsrldir}/NSRLFile.txt\'\; >> $conf; |
---|
264 | +# |
---|
265 | +# if (test -f "${nsrldir}/NSRLFile.txt-md5.idx") then |
---|
266 | +# echo ' NSRL Index file found (NSRLFile.txt-md5.idx)'; |
---|
267 | +# else |
---|
268 | +# echo ' NSRL Index file not found, do you want it created? (y/n) [n]:' |
---|
269 | +# read rep; |
---|
270 | +# if (test "$rep" = "y") then |
---|
271 | +# echo '' |
---|
272 | +# echo '-------------- begin hfind output --------------' |
---|
273 | +# "${tskdir}/bin/hfind" -i nsrl-md5 "${nsrldir}/NSRLFile.txt"; |
---|
274 | +# echo '--------------- end hfind output ---------------' |
---|
275 | +# echo '' |
---|
276 | +# fi; |
---|
277 | +# fi; |
---|
278 | +# break; |
---|
279 | +# else |
---|
280 | +# echo 'The NSRL was not found (the directory should have NSRLFile.txt in it)'; |
---|
281 | +# echo 'Enter a new directory (or cancel to stop):'; |
---|
282 | +# fi; |
---|
283 | +# done |
---|
284 | +#else |
---|
285 | echo \$NSRLDB = \'\'\; >> $conf; |
---|
286 | -fi; |
---|
287 | +#fi; |
---|
288 | |
---|
289 | ############################################################################# |
---|
290 | # EVIDENCE LOCKER |
---|
291 | @@ -402,7 +408,8 @@ |
---|
292 | echo 'Evidence Locker directory.' |
---|
293 | echo '' |
---|
294 | echo 'Enter the directory that you want to use for the Evidence Locker:'; |
---|
295 | -read locker; |
---|
296 | +#read locker; |
---|
297 | +locker='MP_AUTOPSY_LOCKER' |
---|
298 | if (test -d "${locker}") then |
---|
299 | echo " $locker already exists" |
---|
300 | else |
---|