Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
PhotoRecCarverFileOptExtensions.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.modules.photoreccarver;
20 
21 import java.util.Arrays;
22 import java.util.HashSet;
23 import java.util.Set;
24 
29 final class PhotoRecCarverFileOptExtensions {
30 
39  static boolean isValidExtension(String extension) {
40  return KNOWN_EXTENSIONS.contains(extension);
41  }
42 
43  // This was generated by photorec. It can be generated by photorec by
44  // launching photorec_win with no arguments, go to "Proceed", go to
45  // "File Opt" and press 'b'. This should generate a photorec.cfg file in
46  // the working directory with all the extensions.
47  private static final Set<String> KNOWN_EXTENSIONS = new HashSet<String>(Arrays.asList(
48  "1cd",
49  "3dm",
50  "7z",
51  "DB",
52  "a",
53  "abr",
54  "acb",
55  "accdb",
56  "ace",
57  "ab",
58  "ado",
59  "afdesign",
60  "ahn",
61  "aif",
62  "all",
63  "als",
64  "amd",
65  "amr",
66  "apa",
67  "ape",
68  "apple",
69  "ari",
70  "arj",
71  "asf",
72  "asl",
73  "asm",
74  "atd",
75  "au",
76  "axp",
77  "axx",
78  "bac",
79  "bdm",
80  "db",
81  "bim",
82  "bin",
83  "binvox",
84  "bkf",
85  "blend",
86  "bmp",
87  "bpg",
88  "bvr",
89  "bz2",
90  "c4d",
91  "cab",
92  "caf",
93  "cam",
94  "catdrawing",
95  "cdt",
96  "che",
97  "chm",
98  "class",
99  "comicdoc",
100  "cp_",
101  "cow",
102  "cpi",
103  "crw",
104  "csh",
105  "ctg",
106  "cwk",
107  "d2s",
108  "dad",
109  "dar",
110  "dat",
111  "dbf",
112  "dbn",
113  "dcm",
114  "ddf",
115  "dex",
116  "diskimage",
117  "fat",
118  "djv",
119  "dmp",
120  "drw",
121  "doc",
122  "dpx",
123  "ds2",
124  "DS_Store",
125  "dsc",
126  "dss",
127  "dst",
128  "dta",
129  "dump",
130  "dv",
131  "dvi",
132  "dvr",
133  "dwg",
134  "dxf",
135  "e01",
136  "eCryptfs",
137  "edb",
138  "elf",
139  "emf",
140  "ess",
141  "evt",
142  "evtx",
143  "exe",
144  "exs",
145  "ext",
146  "ext",
147  "fat",
148  "fbf",
149  "fbk",
150  "fcp",
151  "fcs",
152  "fdb",
153  "fds",
154  "fh10",
155  "fh5",
156  "sparseimage",
157  "fits",
158  "fit",
159  "flac",
160  "flp",
161  "flv",
162  "fm",
163  "fob",
164  "fos",
165  "fp5",
166  "fp7",
167  "freeway",
168  "frm",
169  "fs",
170  "fwd",
171  "gam",
172  "gct",
173  "gho",
174  "gi",
175  "gif",
176  "gm*",
177  "gp2",
178  "gp5",
179  "gpg",
180  "gpx",
181  "gsm",
182  "gz",
183  "hdf",
184  "hdr",
185  "hds",
186  "hfsp",
187  "hm",
188  "hr9",
189  "http",
190  "ibd",
191  "icc",
192  "icns",
193  "ico",
194  "idx",
195  "ifo",
196  "imb",
197  "indd",
198  "info",
199  "iso",
200  "it",
201  "itu",
202  "jks",
203  "jpg",
204  "jsonlz4",
205  "kdb",
206  "kdbx",
207  "key",
208  "ldf",
209  "lit",
210  "logic",
211  "lnk",
212  "lso",
213  "luks",
214  "lxo",
215  "lzh",
216  "lzo",
217  "m2ts",
218  "mat",
219  "max",
220  "mb",
221  "mcd",
222  "mdb",
223  "mdf",
224  "mfa",
225  "mfg",
226  "mft",
227  "mid",
228  "mig",
229  "mk5",
230  "mkv",
231  "mlv",
232  "mobi",
233  "mov/mdat",
234  "mov",
235  "mp3",
236  "mpg",
237  "mpl",
238  "mrw",
239  "msa",
240  "mus",
241  "myo",
242  "MYI",
243  "mxf",
244  "nd2",
245  "nds",
246  "nes",
247  "njx",
248  "nk2",
249  "nsf",
250  "oci",
251  "ogg",
252  "one",
253  "orf",
254  "paf",
255  "pap",
256  "par2",
257  "pcap",
258  "pcb",
259  "pct",
260  "pcx",
261  "pdb",
262  "pdf",
263  "pds",
264  "pf",
265  "pfx",
266  "dump",
267  "plist",
268  "plr",
269  "plt",
270  "png",
271  "pnm",
272  "prc",
273  "prd",
274  "prt",
275  "ps",
276  "psb",
277  "psd",
278  "psf",
279  "psp",
280  "pst",
281  "ptb",
282  "ptf",
283  "pyc",
284  "pzf",
285  "pzh",
286  "qbb",
287  "qdf",
288  "qkt",
289  "qxd",
290  "r3d",
291  "ra",
292  "raf",
293  "rar",
294  "raw",
295  "rdc",
296  "reg",
297  "res",
298  "rfp",
299  "riff",
300  "rlv",
301  "rm",
302  "rns",
303  "rpm",
304  "rw2",
305  "rx2",
306  "save",
307  "ses",
308  "sgcta",
309  "shn",
310  "sib",
311  "sit",
312  "skd",
313  "skp",
314  "snag",
315  "snz",
316  "sp3",
317  "spe",
318  "spf",
319  "sav",
320  "sqlite",
321  "sqm",
322  "steuer2014",
323  "stl",
324  "studio",
325  "sit",
326  "swf",
327  "tar",
328  "tax",
329  "tg",
330  "tib",
331  "tif",
332  "TiVo",
333  "torrent",
334  "tph",
335  "tpl",
336  "ts",
337  "ttf",
338  "tx?",
339  "txt",
340  "tz",
341  "v2i",
342  "vault",
343  "vdj",
344  "vfb",
345  "vdi",
346  "veg",
347  "vib",
348  "vmdk",
349  "vmg",
350  "wallet",
351  "wdp",
352  "wee",
353  "wim",
354  "win",
355  "wks",
356  "wld",
357  "wmf",
358  "wnk",
359  "woff",
360  "wpb",
361  "wpd",
362  "wtv",
363  "wv",
364  "x3f",
365  "x3i",
366  "x4a",
367  "xar",
368  "xcf",
369  "xfi",
370  "xfs",
371  "xm",
372  "xml",
373  "xsv",
374  "xpt",
375  "xv",
376  "xz",
377  "z2d",
378  "zcode",
379  "zip",
380  "zpr"));
381 
382  private PhotoRecCarverFileOptExtensions() {
383  }
384 }

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.