19 package org.sleuthkit.autopsy.modules.embeddedfileextractor;
22 import java.util.logging.Level;
46 static final String[] SUPPORTED_EXTENSIONS = {
"zip",
"rar",
"arj",
"7z",
"7zip",
"gzip",
"gz",
"bzip2",
"tar",
"tgz",};
59 SupportedImageExtractionFormats abstractFileExtractionFormat;
76 File extractionDirectory =
new File(moduleDirAbsolute);
77 if (!extractionDirectory.exists()) {
79 extractionDirectory.mkdirs();
80 }
catch (SecurityException ex) {
81 logger.log(Level.SEVERE,
"Error initializing output dir: " + moduleDirAbsolute, ex);
95 this.archiveExtractor =
new SevenZipExtractor(context, fileTypeDetector, moduleDirRelative, moduleDirAbsolute);
96 this.imageExtractor =
new ImageExtractor(context, fileTypeDetector, moduleDirRelative, moduleDirAbsolute);
112 this.archivextraction = archiveExtractor.isSevenZipExtractionSupported(abstractFile);
113 this.imageExtraction = imageExtractor.isImageExtractionSupported(abstractFile);
120 if (this.archivextraction) {
121 archiveExtractor.unpack(abstractFile);
125 if (this.imageExtraction) {
126 imageExtractor.extractImage(abstractFile);
145 return archiveFile.
getName() +
"_" + archiveFile.
getId();
synchronized long decrementAndGet(long jobId)
static IngestMessage createErrorMessage(String source, String subject, String detailsHtml)
TskData.TSK_DB_FILES_TYPE_ENUM getType()
String getModulesOutputDirAbsPath()
static String getModulesOutputDirRelPath()
TskData.FileKnown getKnown()
void postMessage(final IngestMessage message)
static Case getCurrentCase()
static Logger getLogger(String name)
static synchronized IngestServices getInstance()