From 65d5976a2209e3e9337b565ee385485f6b16f98e Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 6 Jan 2020 23:28:07 +0100 Subject: Updated some Python plugins. --- plugins/python/abackup/plugin.py | 4 ++-- plugins/python/checksec/plugin.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/python/abackup/plugin.py b/plugins/python/abackup/plugin.py index 3c70f07..d8f52b1 100644 --- a/plugins/python/abackup/plugin.py +++ b/plugins/python/abackup/plugin.py @@ -129,8 +129,8 @@ class AndroidBackupPlugin(PluginModule): except: - core.log_message(core.LMT_ERROR, 'The Android backup is corrupted') + core.log_message(core.LogMessageType.ERROR, 'The Android backup is corrupted') else: - core.log_message(core.LMT_ERROR, 'Bad Android backup password') + core.log_message(core.LogMessageType.ERROR, 'Bad Android backup password') diff --git a/plugins/python/checksec/plugin.py b/plugins/python/checksec/plugin.py index 89c392f..f1229bb 100644 --- a/plugins/python/checksec/plugin.py +++ b/plugins/python/checksec/plugin.py @@ -3,7 +3,7 @@ from .mitigations import ElfMitigations from pychrysalide import PluginModule -from pychrysalide.core import log_message, LMT_INFO +from pychrysalide.core import log_message, LogMessageType from pychrysalide.format.elf import ElfFormat @@ -37,4 +37,4 @@ class CheckSec(PluginModule): msg = 'Elf mitigations: NX: %s PIE: %s RelRO: %s Canary: %s' \ % (m._nx, m._pie, m._relro, m._canary) - self.log_message(LMT_INFO, msg) + self.log_message(LogMessageType.INFO, msg) -- cgit v0.11.2-87-g4458