diff --git a/Core/release/InternalPythonModules/android/browserlocation.py b/Core/release/InternalPythonModules/android/browserlocation.py index 2b17f1f8f9..81da60cc0c 100755 --- a/Core/release/InternalPythonModules/android/browserlocation.py +++ b/Core/release/InternalPythonModules/android/browserlocation.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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.lang import Class from java.lang import ClassNotFoundException @@ -42,7 +61,7 @@ class BrowserLocationAnalyzer(general.AndroidComponentAnalyzer): try: jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName()) ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled) - self.findGeoLocationsInDB(jFile.toString(), abstractFile) + self.__findGeoLocationsInDB(jFile.toString(), abstractFile) except Exception as ex: self._logger.log(Level.SEVERE, "Error parsing Browser Location files", ex) 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, traceback.format_exc()) - def findGeoLocationsInDB(self, databasePath, abstractFile): + def __findGeoLocationsInDB(self, databasePath, abstractFile): if not databasePath: return diff --git a/Core/release/InternalPythonModules/android/cachelocation.py b/Core/release/InternalPythonModules/android/cachelocation.py index 92d52ae987..125141ecee 100755 --- a/Core/release/InternalPythonModules/android/cachelocation.py +++ b/Core/release/InternalPythonModules/android/cachelocation.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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 FileInputStream from java.io import InputStream @@ -44,7 +63,7 @@ class CacheLocationAnalyzer(general.AndroidComponentAnalyzer): try: jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName()) ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled) - self.findGeoLocationsInFile(jFile, abstractFile) + self.__findGeoLocationsInFile(jFile, abstractFile) except Exception as ex: self._logger.log(Level.SEVERE, "Error parsing cached Location files", ex) 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, 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 diff --git a/Core/release/InternalPythonModules/android/calllog.py b/Core/release/InternalPythonModules/android/calllog.py index d118c6c6d9..fab4ee7805 100755 --- a/Core/release/InternalPythonModules/android/calllog.py +++ b/Core/release/InternalPythonModules/android/calllog.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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 IOException from java.lang import Class @@ -67,7 +86,7 @@ class CallLogAnalyzer(general.AndroidComponentAnalyzer): try: file = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName()) ContentUtils.writeToFile(abstractFile, file, context.dataSourceIngestIsCancelled) - self.findCallLogsInDB(file.toString(), abstractFile) + self.__findCallLogsInDB(file.toString(), abstractFile) except IOException as ex: self._logger.log(Level.SEVERE, "Error writing temporary call log db to disk", ex) 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, traceback.format_exc()) - def findCallLogsInDB(self, databasePath, abstractFile): + def __findCallLogsInDB(self, databasePath, abstractFile): if not databasePath: return diff --git a/Core/release/InternalPythonModules/android/contact.py b/Core/release/InternalPythonModules/android/contact.py index 44659c0e84..480d9dcbc1 100755 --- a/Core/release/InternalPythonModules/android/contact.py +++ b/Core/release/InternalPythonModules/android/contact.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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.lang import Class from java.lang import ClassNotFoundException @@ -42,7 +61,7 @@ class ContactAnalyzer(general.AndroidComponentAnalyzer): try: jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName()) ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled) - self.findContactsInDB(str(jFile.toString()), abstractFile) + self.__findContactsInDB(str(jFile.toString()), abstractFile) except Exception as ex: self._logger.log(Level.SEVERE, "Error parsing Contacts", ex) 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 The fileId will be the abstract file associated with the artifacts """ - def findContactsInDB(self, databasePath, abstractFile): + def __findContactsInDB(self, databasePath, abstractFile): if not databasePath: return diff --git a/Core/release/InternalPythonModules/android/general.py b/Core/release/InternalPythonModules/android/general.py index 3316e89e6d..02944fc3d2 100755 --- a/Core/release/InternalPythonModules/android/general.py +++ b/Core/release/InternalPythonModules/android/general.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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" """ diff --git a/Core/release/InternalPythonModules/android/googlemaplocation.py b/Core/release/InternalPythonModules/android/googlemaplocation.py index ed8c2ef9df..e9da2d9e99 100755 --- a/Core/release/InternalPythonModules/android/googlemaplocation.py +++ b/Core/release/InternalPythonModules/android/googlemaplocation.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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.lang import Class from java.lang import ClassNotFoundException @@ -42,7 +61,7 @@ class GoogleMapLocationAnalyzer(general.AndroidComponentAnalyzer): try: jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName()) ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled) - self.findGeoLocationsInDB(jFile.toString(), abstractFile) + self.__findGeoLocationsInDB(jFile.toString(), abstractFile) except Exception as ex: self._logger.log(Level.SEVERE, "Error parsing Google map locations", ex) 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, traceback.format_exc()) - def findGeoLocationsInDB(self, databasePath, abstractFile): + def __findGeoLocationsInDB(self, databasePath, abstractFile): if not databasePath: return diff --git a/Core/release/InternalPythonModules/android/module.py b/Core/release/InternalPythonModules/android/module.py index e1a6d873cb..41de9f7ab2 100755 --- a/Core/release/InternalPythonModules/android/module.py +++ b/Core/release/InternalPythonModules/android/module.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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 inspect import traceback diff --git a/Core/release/InternalPythonModules/android/tangomessage.py b/Core/release/InternalPythonModules/android/tangomessage.py index d8e68f48d8..c9e17f8244 100755 --- a/Core/release/InternalPythonModules/android/tangomessage.py +++ b/Core/release/InternalPythonModules/android/tangomessage.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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.lang import Class from java.lang import ClassNotFoundException @@ -41,7 +60,7 @@ class TangoMessageAnalyzer(general.AndroidComponentAnalyzer): try: jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName()) ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled) - self.findTangoMessagesInDB(jFile.toString(), abstractFile) + self.__findTangoMessagesInDB(jFile.toString(), abstractFile) except Exception as ex: self._logger.log(Level.SEVERE, "Error parsing Tango messages", ex) 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, traceback.format_exc()) - def findTangoMessagesInDB(self, databasePath, abstractFile): + def __findTangoMessagesInDB(self, databasePath, abstractFile): if not databasePath: return diff --git a/Core/release/InternalPythonModules/android/textmessage.py b/Core/release/InternalPythonModules/android/textmessage.py index eb99d15cb9..f59220edc3 100755 --- a/Core/release/InternalPythonModules/android/textmessage.py +++ b/Core/release/InternalPythonModules/android/textmessage.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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.lang import Class from java.lang import ClassNotFoundException @@ -40,7 +59,7 @@ class TextMessageAnalyzer(general.AndroidComponentAnalyzer): try: jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName()) ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled) - self.findTextsInDB(jFile.toString(), abstractFile) + self.__findTextsInDB(jFile.toString(), abstractFile) except Exception as ex: self._logger.log(Level.SEVERE, "Error parsing text messages", ex) 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, traceback.format_exc()) - def findTextsInDB(self, databasePath, abstractFile): + def __findTextsInDB(self, databasePath, abstractFile): if not databasePath: return diff --git a/Core/release/InternalPythonModules/android/wwfmessage.py b/Core/release/InternalPythonModules/android/wwfmessage.py index 0a1e27bab6..902b0816bc 100755 --- a/Core/release/InternalPythonModules/android/wwfmessage.py +++ b/Core/release/InternalPythonModules/android/wwfmessage.py @@ -1,3 +1,22 @@ +""" +Autopsy Forensic Browser + +Copyright 2016 Basis Technology Corp. +Contact: carrier sleuthkit 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.lang import Class from java.lang import ClassNotFoundException @@ -38,7 +57,7 @@ class WWFMessageAnalyzer(general.AndroidComponentAnalyzer): try: jFile = File(Case.getCurrentCase().getTempDirectory(), abstractFile.getName()) ContentUtils.writeToFile(abstractFile, jFile, context.dataSourceIngestIsCancelled) - self.findWWFMessagesInDB(jFile.toString(), abstractFile) + self.__findWWFMessagesInDB(jFile.toString(), abstractFile) except Exception as ex: self._logger.log(Level.SEVERE, "Error parsing WWF messages", ex) 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, traceback.format_exc()) - def findWWFMessagesInDB(self, databasePath, abstractFile): + def __findWWFMessagesInDB(self, databasePath, abstractFile): if not databasePath: return