1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-08-31 00:22:00 +00:00

More infra additions

This commit is contained in:
U-BASIS\dsmyda
2019-09-13 17:46:53 -04:00
parent 4f171c7a51
commit e90a2ea15c
2 changed files with 13 additions and 1 deletions

View File

@@ -26,3 +26,14 @@ class AndroidComponentAnalyzer:
# The Analyzer should implement this method
def analyze(self, dataSource, fileManager, context):
raise NotImplementedError
"""
A utility method to append list of attachments to msg body
"""
def appendAttachmentList(msgBody, attachmentsList):
body = msgBody
if attachmentsList:
body = body + "\n\n------------Attachments------------\n"
body = body + "\n".join(attachmentsList)
return body

View File

@@ -47,6 +47,7 @@ import tangomessage
import textmessage
import wwfmessage
import imo
import textnow
class AndroidModuleFactory(IngestModuleFactoryAdapter):
@@ -91,7 +92,7 @@ class AndroidIngestModule(DataSourceIngestModule):
analyzers = [contact.ContactAnalyzer(), calllog.CallLogAnalyzer(), textmessage.TextMessageAnalyzer(),
tangomessage.TangoMessageAnalyzer(), wwfmessage.WWFMessageAnalyzer(),
googlemaplocation.GoogleMapLocationAnalyzer(), browserlocation.BrowserLocationAnalyzer(),
cachelocation.CacheLocationAnalyzer(), imo.IMOAnalyzer()]
cachelocation.CacheLocationAnalyzer(), imo.IMOAnalyzer(), textnow.TextNowAnalyzer()]
self.log(Level.INFO, "running " + str(len(analyzers)) + " analyzers")
progressBar.switchToDeterminate(len(analyzers))