diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2020-01-06 22:28:07 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2020-01-06 22:28:07 (GMT) |
commit | 65d5976a2209e3e9337b565ee385485f6b16f98e (patch) | |
tree | ebb944a3586953ca0328222a0730c24ced9f77c2 /plugins/python | |
parent | 24398cb372624bf281ee4d9eb07f2a076b3cc664 (diff) |
Updated some Python plugins.
Diffstat (limited to 'plugins/python')
-rw-r--r-- | plugins/python/abackup/plugin.py | 4 | ||||
-rw-r--r-- | 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: <b>%s</b> PIE: <b>%s</b> RelRO: <b>%s</b> Canary: <b>%s</b>' \ % (m._nx, m._pie, m._relro, m._canary) - self.log_message(LMT_INFO, msg) + self.log_message(LogMessageType.INFO, msg) |