def sql_check(): try: files = get_files() if not files: Utils.printy("No SQL files found ", 2) return retrieved_files = Utils.get_dataprotection(files) data.local_file_protection.extend(retrieved_files) check = Checker(files, 'SQL') check.start() Utils.printy_result('Database Check.', 1) return check.results except Exception, e: data.logger.warn(e)
def check(self): try: files = self.get_files() if not files: Utils.printy("No Plist files found ", 2) return # Add data protection class retrieved_files = Utils.get_dataprotection(files) data.local_file_protection.extend(retrieved_files) # start check plist sensitive data check = Checker(files, 'PLIST') check.start() data.plist_file_results = check.results except Exception, e: data.logger.warn(e)