summaryrefslogtreecommitdiff
path: root/plugins/python
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python')
-rw-r--r--plugins/python/abackup/plugin.py4
-rw-r--r--plugins/python/checksec/plugin.py4
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)