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 |
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; |
| 63 | if (test $found -eq 0) then |
| 64 | echo 'Sleuth Kit tools were not found in the standard install locations.' |
| 65 | - echo 'If you have not installed them, do so now and configure autopsy again.' |
| 66 | - echo 'If you have installed them in a non-standard location, then' |
| 67 | - echo ' enter the "bin" directory now:' |
| 68 | - |
| 69 | - while (test 1 -eq 1) |
| 70 | - do read tskdir; |
| 71 | - if ((test -x ${tskdir}/fls) && (test -x ${tskdir}/ffind) && (test -x ${tskdir}/dstat) && \ |
| 72 | - (test -x ${tskdir}/dls) && (test -x ${tskdir}/dcat) && \ |
| 73 | - (test -x ${tskdir}/mmls) && (test -x ${tskdir}/mmstat) && \ |
| 74 | - (test -x ${tskdir}/fsstat) && (test -x ${tskdir}/img_stat) && \ |
| 75 | - (test -x ${tskdir}/istat) && (test -x ${tskdir}/ifind) && \ |
| 76 | - (test -x ${tskdir}/icat) && (test -x ${tskdir}/ils) && \ |
| 77 | - (test -x ${tskdir}/srch_strings) && \ |
| 78 | - (test -x ${tskdir}/mactime) && (test -x ${tskdir}/sorter)) then |
| 79 | - echo \$TSKDIR = \'${tskdir}\'\; >> $conf; |
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 @@ |
| 99 | @@ -421,44 +366,7 @@ |
| 100 | echo 'The NIST National Software Reference Library (NSRL) contains' |
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 |