summaryrefslogtreecommitdiff
path: root/plugins/python/checksec
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/python/checksec')
-rw-r--r--plugins/python/checksec/plugin.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/python/checksec/plugin.py b/plugins/python/checksec/plugin.py
index 6efb9b5..89c392f 100644
--- a/plugins/python/checksec/plugin.py
+++ b/plugins/python/checksec/plugin.py
@@ -10,20 +10,21 @@ from pychrysalide.format.elf import ElfFormat
class CheckSec(PluginModule):
"""Check for Elf mititgations."""
- def get_interface(self):
- """Provide the full plugin description."""
- desc = {
+ def __init__(self):
+ """Initialize the plugin for Chrysalide."""
+
+ interface = {
'name' : 'CheckSec',
'desc' : 'Output the exploit mitigations compiled with a loaded binary',
'version' : '0.1',
- 'actions' : [ PluginModule.PGA_FORMAT_POST_ANALYSIS_ENDED ]
+ 'actions' : ( PluginModule.PGA_FORMAT_POST_ANALYSIS_ENDED, )
}
- return desc
+ super(CheckSec, self).__init__(**interface)
def handle_format_analysis(self, action, format, gid, status):