-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathautopsy.py
71 lines (50 loc) · 2.22 KB
/
autopsy.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
from java.util.logging import Level
from org.sleuthkit.autopsy.ingest import GenericIngestModuleJobSettings
from org.sleuthkit.autopsy.report import GeneralReportModuleAdapter
from org.sleuthkit.autopsy.ingest import IngestModuleFactoryAdapter
from psy.ingest import ProjectIngestModule
from psy.report import ReportOutput
from psy.settings import ProjectIngestSettingsPanel
from psy.settings import ProjectReportSettingsPanel
class ProjectIngestModuleFactory(IngestModuleFactoryAdapter):
moduleName = "TikTok (to be changed)"
def __init__(self):
self.settings = None
#Module Settings
def getModuleDisplayName(self):
return self.moduleName
def getModuleDescription(self):
return "Android forensics framework. Extract, analyze and generate reports based on user data."
def getModuleVersionNumber(self):
return "1.0"
#Data Source Ingest
def isDataSourceIngestModuleFactory(self):
return True
def createDataSourceIngestModule(self, ingestOptions):
return ProjectIngestModule(self.settings)
#Settings
def getDefaultIngestJobSettings(self):
return GenericIngestModuleJobSettings()
def hasIngestJobSettingsPanel(self):
return True
def getIngestJobSettingsPanel(self, settings):
if not isinstance(settings, GenericIngestModuleJobSettings):
raise IllegalArgumentException("Expected settings argument to be instanceof GenericIngestModuleJobSettings")
self.settings = settings
return ProjectIngestSettingsPanel(self.settings)
class ProjectIngestModuleReport(GeneralReportModuleAdapter):
moduleName = "Unnamed Project Report"
def __init__(self):
self.settings = None
self.report = ReportOutput()
def getName(self):
return self.moduleName
def getDescription(self):
return "Android Forensics Framework Report Generator"
def generateReport(self, baseReportDir, progressBar):
self.report.generateReport(baseReportDir, progressBar)
def getConfigurationPanel(self):
self.configPanel = ProjectReportSettingsPanel()
return self.configPanel
def getRelativeFilePath(self):
return "index.html"