Autopsy
3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.ingest.FileIngestModule.
Classes | |
class | IngestJobTotals |
Public Member Functions | |
void | startUp (IngestJobContext context) throws IngestModuleException |
ProcessResult | process (AbstractFile abstractFile) |
void | shutDown () |
Private Member Functions | |
boolean | compareSigTypeToExt (AbstractFile abstractFile) |
Static Private Member Functions | |
static synchronized void | addToTotals (long ingestJobId, long processTimeInc) |
Private Attributes | |
final IngestServices | services = IngestServices.getInstance() |
final FileExtMismatchDetectorModuleSettings | settings |
HashMap< String, String[]> | SigTypeToExtMap = new HashMap<>() |
long | jobId |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(FileExtMismatchIngestModule.class.getName()) |
static final HashMap< Long, IngestJobTotals > | totalsForIngestJobs = new HashMap<>() |
static final IngestModuleReferenceCounter | refCounter = new IngestModuleReferenceCounter() |
Flags mismatched filename extensions based on file signature.
Definition at line 46 of file FileExtMismatchIngestModule.java.
|
staticprivate |
Update the match time total and increment num of files for this job
ingestJobId | |
matchTimeInc | amount of time to add |
Definition at line 66 of file FileExtMismatchIngestModule.java.
References org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.IngestJobTotals.numFiles, and org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.IngestJobTotals.processTime.
Referenced by org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.process().
|
private |
Compare file type for file and extension.
abstractFile |
Definition at line 132 of file FileExtMismatchIngestModule.java.
References org::sleuthkit::datamodel::AbstractContent.getGenInfoAttributes(), org::sleuthkit::datamodel::AbstractFile.getNameExtension(), and org::sleuthkit::datamodel::BlackboardAttribute::ATTRIBUTE_TYPE.TSK_FILE_TYPE_SIG.
Referenced by org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.process().
ProcessResult org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.process | ( | AbstractFile | file | ) |
Processes a file. Called between calls to startUp() and shutDown(). Will be called for each file in a data source.
file | The file to analyze. |
Implements org.sleuthkit.autopsy.ingest.FileIngestModule.
Definition at line 92 of file FileExtMismatchIngestModule.java.
References org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.addToTotals(), org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.compareSigTypeToExt(), org.sleuthkit.autopsy.ingest.IngestModule.ProcessResult.ERROR, org.sleuthkit.autopsy.ingest.IngestServices.fireModuleDataEvent(), org::sleuthkit::datamodel::AbstractFile.getType(), org::sleuthkit::datamodel::AbstractFile.isDirNameFlagSet(), org::sleuthkit::datamodel::AbstractFile.isFile(), org::sleuthkit::datamodel::AbstractFile.isMetaFlagSet(), org::sleuthkit::datamodel::AbstractContent.newArtifact(), org.sleuthkit.autopsy.ingest.IngestModule.ProcessResult.OK, org::sleuthkit::datamodel::BlackboardArtifact::ARTIFACT_TYPE.TSK_EXT_MISMATCH_DETECTED, org::sleuthkit::datamodel::TskData::TSK_FS_META_FLAG_ENUM.UNALLOC, org::sleuthkit::datamodel::TskData::TSK_FS_NAME_FLAG_ENUM.UNALLOC, org::sleuthkit::datamodel::TskData::TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS, and org::sleuthkit::datamodel::TskData::TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS.
void org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.shutDown | ( | ) |
Invoked by Autopsy when an ingest job is completed (either because the data has been analyzed or because the job was canceled - check IngestJobContext.fileIngestIsCancelled()), before the ingest module instance is discarded. The module should respond by doing things like releasing private resources, submitting final results, and posting a final ingest message.
Implements org.sleuthkit.autopsy.ingest.FileIngestModule.
Definition at line 176 of file FileExtMismatchIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestMessage.createMessage(), org.sleuthkit.autopsy.ingest.IngestModuleReferenceCounter.decrementAndGet(), org.sleuthkit.autopsy.ingest.IngestMessage.MessageType.INFO, org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.IngestJobTotals.numFiles, org.sleuthkit.autopsy.ingest.IngestServices.postMessage(), and org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.IngestJobTotals.processTime.
void org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.startUp | ( | IngestJobContext | context | ) | throws IngestModuleException |
Invoked by Autopsy to allow an ingest module instance to set up any internal data structures and acquire any private resources it will need during an ingest job. If the module depends on loading any resources, it should do so in this method so that it can throw an exception in the case of an error and alert the user. Exceptions that are thrown from process() and shutDown() are logged, but do not stop processing of the data source.
context | Provides data and services specific to the ingest job and the ingest pipeline of which the module is a part. |
Implements org.sleuthkit.autopsy.ingest.IngestModule.
Definition at line 83 of file FileExtMismatchIngestModule.java.
References org.sleuthkit.autopsy.ingest.IngestModuleReferenceCounter.incrementAndGet().
|
private |
Definition at line 52 of file FileExtMismatchIngestModule.java.
|
staticprivate |
Definition at line 48 of file FileExtMismatchIngestModule.java.
|
staticprivate |
Definition at line 54 of file FileExtMismatchIngestModule.java.
|
private |
Definition at line 49 of file FileExtMismatchIngestModule.java.
|
private |
Definition at line 50 of file FileExtMismatchIngestModule.java.
|
private |
Definition at line 51 of file FileExtMismatchIngestModule.java.
|
staticprivate |
Definition at line 53 of file FileExtMismatchIngestModule.java.
Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.