mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 18:17:43 +00:00
Add license header and make python methods 'private'
This commit is contained in:
parent
6c17e9465d
commit
734f233e58
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from java.lang import Class
|
from java.lang import Class
|
||||||
from java.lang import ClassNotFoundException
|
from java.lang import ClassNotFoundException
|
||||||
@ -42,7 +61,7 @@ class BrowserLocationAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
try:
|
try:
|
||||||
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||||
self.findGeoLocationsInDB(jFile.toString(), abstractFile)
|
self.__findGeoLocationsInDB(jFile.toString(), abstractFile)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._logger.log(Level.SEVERE, "Error parsing Browser Location files", ex)
|
self._logger.log(Level.SEVERE, "Error parsing Browser Location files", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
@ -50,7 +69,7 @@ class BrowserLocationAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, "Error finding Browser Location files", ex)
|
self._logger.log(Level.SEVERE, "Error finding Browser Location files", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
|
|
||||||
def findGeoLocationsInDB(self, databasePath, abstractFile):
|
def __findGeoLocationsInDB(self, databasePath, abstractFile):
|
||||||
if not databasePath:
|
if not databasePath:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from java.io import FileInputStream
|
from java.io import FileInputStream
|
||||||
from java.io import InputStream
|
from java.io import InputStream
|
||||||
@ -44,7 +63,7 @@ class CacheLocationAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
try:
|
try:
|
||||||
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||||
self.findGeoLocationsInFile(jFile, abstractFile)
|
self.__findGeoLocationsInFile(jFile, abstractFile)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._logger.log(Level.SEVERE, "Error parsing cached Location files", ex)
|
self._logger.log(Level.SEVERE, "Error parsing cached Location files", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
@ -52,7 +71,7 @@ class CacheLocationAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, "Error finding cached Location files", ex)
|
self._logger.log(Level.SEVERE, "Error finding cached Location files", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
|
|
||||||
def findGeoLocationsInFile(self, file, abstractFile):
|
def __findGeoLocationsInFile(self, file, abstractFile):
|
||||||
|
|
||||||
tempBytes = bytearray([0] * 2) # will temporarily hold bytes to be converted into the correct data types
|
tempBytes = bytearray([0] * 2) # will temporarily hold bytes to be converted into the correct data types
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from java.io import IOException
|
from java.io import IOException
|
||||||
from java.lang import Class
|
from java.lang import Class
|
||||||
@ -67,7 +86,7 @@ class CallLogAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
try:
|
try:
|
||||||
file = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
file = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||||
ContentUtils.writeToFile(abstractFile, file, context.dataSourceIngestIsCancelled)
|
ContentUtils.writeToFile(abstractFile, file, context.dataSourceIngestIsCancelled)
|
||||||
self.findCallLogsInDB(file.toString(), abstractFile)
|
self.__findCallLogsInDB(file.toString(), abstractFile)
|
||||||
except IOException as ex:
|
except IOException as ex:
|
||||||
self._logger.log(Level.SEVERE, "Error writing temporary call log db to disk", ex)
|
self._logger.log(Level.SEVERE, "Error writing temporary call log db to disk", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
@ -75,7 +94,7 @@ class CallLogAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, "Error finding call logs", ex)
|
self._logger.log(Level.SEVERE, "Error finding call logs", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
|
|
||||||
def findCallLogsInDB(self, databasePath, abstractFile):
|
def __findCallLogsInDB(self, databasePath, abstractFile):
|
||||||
if not databasePath:
|
if not databasePath:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from java.lang import Class
|
from java.lang import Class
|
||||||
from java.lang import ClassNotFoundException
|
from java.lang import ClassNotFoundException
|
||||||
@ -42,7 +61,7 @@ class ContactAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
try:
|
try:
|
||||||
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||||
self.findContactsInDB(str(jFile.toString()), abstractFile)
|
self.__findContactsInDB(str(jFile.toString()), abstractFile)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._logger.log(Level.SEVERE, "Error parsing Contacts", ex)
|
self._logger.log(Level.SEVERE, "Error parsing Contacts", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
@ -54,7 +73,7 @@ class ContactAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
Will create artifact from a database given by the path
|
Will create artifact from a database given by the path
|
||||||
The fileId will be the abstract file associated with the artifacts
|
The fileId will be the abstract file associated with the artifacts
|
||||||
"""
|
"""
|
||||||
def findContactsInDB(self, databasePath, abstractFile):
|
def __findContactsInDB(self, databasePath, abstractFile):
|
||||||
if not databasePath:
|
if not databasePath:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
MODULE_NAME = "Android Analyzer Python"
|
MODULE_NAME = "Android Analyzer Python"
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from java.lang import Class
|
from java.lang import Class
|
||||||
from java.lang import ClassNotFoundException
|
from java.lang import ClassNotFoundException
|
||||||
@ -42,7 +61,7 @@ class GoogleMapLocationAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
try:
|
try:
|
||||||
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||||
self.findGeoLocationsInDB(jFile.toString(), abstractFile)
|
self.__findGeoLocationsInDB(jFile.toString(), abstractFile)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._logger.log(Level.SEVERE, "Error parsing Google map locations", ex)
|
self._logger.log(Level.SEVERE, "Error parsing Google map locations", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
@ -50,7 +69,7 @@ class GoogleMapLocationAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, "Error finding Google map locations", ex)
|
self._logger.log(Level.SEVERE, "Error finding Google map locations", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
|
|
||||||
def findGeoLocationsInDB(self, databasePath, abstractFile):
|
def __findGeoLocationsInDB(self, databasePath, abstractFile):
|
||||||
if not databasePath:
|
if not databasePath:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
import jarray
|
import jarray
|
||||||
import inspect
|
import inspect
|
||||||
import traceback
|
import traceback
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from java.lang import Class
|
from java.lang import Class
|
||||||
from java.lang import ClassNotFoundException
|
from java.lang import ClassNotFoundException
|
||||||
@ -41,7 +60,7 @@ class TangoMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
try:
|
try:
|
||||||
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||||
self.findTangoMessagesInDB(jFile.toString(), abstractFile)
|
self.__findTangoMessagesInDB(jFile.toString(), abstractFile)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._logger.log(Level.SEVERE, "Error parsing Tango messages", ex)
|
self._logger.log(Level.SEVERE, "Error parsing Tango messages", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
@ -49,7 +68,7 @@ class TangoMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, "Error finding Tango messages", ex)
|
self._logger.log(Level.SEVERE, "Error finding Tango messages", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
|
|
||||||
def findTangoMessagesInDB(self, databasePath, abstractFile):
|
def __findTangoMessagesInDB(self, databasePath, abstractFile):
|
||||||
if not databasePath:
|
if not databasePath:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from java.lang import Class
|
from java.lang import Class
|
||||||
from java.lang import ClassNotFoundException
|
from java.lang import ClassNotFoundException
|
||||||
@ -40,7 +59,7 @@ class TextMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
try:
|
try:
|
||||||
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||||
self.findTextsInDB(jFile.toString(), abstractFile)
|
self.__findTextsInDB(jFile.toString(), abstractFile)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._logger.log(Level.SEVERE, "Error parsing text messages", ex)
|
self._logger.log(Level.SEVERE, "Error parsing text messages", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
@ -48,7 +67,7 @@ class TextMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, "Error finding text messages", ex)
|
self._logger.log(Level.SEVERE, "Error finding text messages", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
|
|
||||||
def findTextsInDB(self, databasePath, abstractFile):
|
def __findTextsInDB(self, databasePath, abstractFile):
|
||||||
if not databasePath:
|
if not databasePath:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -1,3 +1,22 @@
|
|||||||
|
"""
|
||||||
|
Autopsy Forensic Browser
|
||||||
|
|
||||||
|
Copyright 2016 Basis Technology Corp.
|
||||||
|
Contact: carrier <at> sleuthkit <dot> org
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
||||||
|
"""
|
||||||
|
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from java.lang import Class
|
from java.lang import Class
|
||||||
from java.lang import ClassNotFoundException
|
from java.lang import ClassNotFoundException
|
||||||
@ -38,7 +57,7 @@ class WWFMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
try:
|
try:
|
||||||
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName())
|
||||||
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled)
|
||||||
self.findWWFMessagesInDB(jFile.toString(), abstractFile)
|
self.__findWWFMessagesInDB(jFile.toString(), abstractFile)
|
||||||
except Exception as ex:
|
except Exception as ex:
|
||||||
self._logger.log(Level.SEVERE, "Error parsing WWF messages", ex)
|
self._logger.log(Level.SEVERE, "Error parsing WWF messages", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
@ -46,7 +65,7 @@ class WWFMessageAnalyzer(general.AndroidComponentAnalyzer):
|
|||||||
self._logger.log(Level.SEVERE, "Error finding WWF messages", ex)
|
self._logger.log(Level.SEVERE, "Error finding WWF messages", ex)
|
||||||
self._logger.log(Level.SEVERE, traceback.format_exc())
|
self._logger.log(Level.SEVERE, traceback.format_exc())
|
||||||
|
|
||||||
def findWWFMessagesInDB(self, databasePath, abstractFile):
|
def __findWWFMessagesInDB(self, databasePath, abstractFile):
|
||||||
if not databasePath:
|
if not databasePath:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user