diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2019-01-03 23:47:07 (GMT) |
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2019-01-03 23:47:07 (GMT) |
| commit | 0b2cada60941d109bde2f54a198f4c3a799e0606 (patch) | |
| tree | 027159249ad8170dd090f3e5d1fe353bf5fe773c /plugins/python/checksec | |
| parent | 55ccf25e0c6666436f0ecd222e60208ebf6ab30e (diff) | |
Updated the Python plugins.
Diffstat (limited to 'plugins/python/checksec')
| -rw-r--r-- | plugins/python/checksec/plugin.py | 11 |
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): |
