Autopsy  4.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule Class Reference

Inherits org.sleuthkit.autopsy.ingest.FileIngestModule.

Classes

class  IngestJobTotals
 

Public Member Functions

ProcessResult process (AbstractFile abstractFile)
 
void shutDown ()
 
void startUp (IngestJobContext context) throws IngestModuleException
 

Private Member Functions

boolean compareSigTypeToExt (AbstractFile abstractFile) throws TskCoreException
 

Static Private Member Functions

static synchronized void addToTotals (long ingestJobId, long processTimeInc)
 

Private Attributes

FileTypeDetector detector
 
long jobId
 
final IngestServices services = IngestServices.getInstance()
 
final FileExtMismatchDetectorModuleSettings settings
 
HashMap< String, String[]> SigTypeToExtMap = new HashMap<>()
 

Static Private Attributes

static Blackboard blackboard
 
static final Logger logger = Logger.getLogger(FileExtMismatchIngestModule.class.getName())
 
static final IngestModuleReferenceCounter refCounter = new IngestModuleReferenceCounter()
 
static final HashMap< Long, IngestJobTotalstotalsForIngestJobs = new HashMap<>()
 

Detailed Description

Flags mismatched filename extensions based on file signature.

Definition at line 49 of file FileExtMismatchIngestModule.java.

Member Function Documentation

static synchronized void org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.addToTotals ( long  ingestJobId,
long  processTimeInc 
)
staticprivate
boolean org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.compareSigTypeToExt ( AbstractFile  abstractFile) throws TskCoreException
private

Compare file type for file and extension.

Parameters
abstractFile
Returns
false if the two match. True if there is a mismatch.

Definition at line 160 of file FileExtMismatchIngestModule.java.

References org.sleuthkit.autopsy.modules.filetypeid.FileTypeDetector.getFileType().

Referenced by org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.process().

ProcessResult org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.process ( AbstractFile  file)
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 197 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.

Parameters
contextProvides data and services specific to the ingest job and the ingest pipeline of which the module is a part.
Exceptions
org.sleuthkit.autopsy.ingest.IngestModule.IngestModuleException

Implements org.sleuthkit.autopsy.ingest.IngestModule.

Definition at line 90 of file FileExtMismatchIngestModule.java.

References org.sleuthkit.autopsy.ingest.IngestModuleReferenceCounter.incrementAndGet().

Member Data Documentation

Blackboard org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.blackboard
staticprivate

Definition at line 58 of file FileExtMismatchIngestModule.java.

FileTypeDetector org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.detector
private

Definition at line 59 of file FileExtMismatchIngestModule.java.

long org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.jobId
private

Definition at line 55 of file FileExtMismatchIngestModule.java.

final Logger org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.logger = Logger.getLogger(FileExtMismatchIngestModule.class.getName())
staticprivate

Definition at line 51 of file FileExtMismatchIngestModule.java.

final IngestModuleReferenceCounter org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.refCounter = new IngestModuleReferenceCounter()
staticprivate

Definition at line 57 of file FileExtMismatchIngestModule.java.

final IngestServices org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.services = IngestServices.getInstance()
private

Definition at line 52 of file FileExtMismatchIngestModule.java.

final FileExtMismatchDetectorModuleSettings org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.settings
private

Definition at line 53 of file FileExtMismatchIngestModule.java.

HashMap<String, String[]> org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.SigTypeToExtMap = new HashMap<>()
private

Definition at line 54 of file FileExtMismatchIngestModule.java.

final HashMap<Long, IngestJobTotals> org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchIngestModule.totalsForIngestJobs = new HashMap<>()
staticprivate

Definition at line 56 of file FileExtMismatchIngestModule.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2015 Basis Technology. Generated on: Wed Apr 6 2016
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.