diff options
Diffstat (limited to 'plugins/python/checksec')
| -rw-r--r-- | plugins/python/checksec/plugin.py | 21 | 
1 files changed, 6 insertions, 15 deletions
diff --git a/plugins/python/checksec/plugin.py b/plugins/python/checksec/plugin.py index f1229bb..6ab213f 100644 --- a/plugins/python/checksec/plugin.py +++ b/plugins/python/checksec/plugin.py @@ -10,24 +10,15 @@ from pychrysalide.format.elf import ElfFormat  class CheckSec(PluginModule):      """Check for Elf mititgations.""" +    _name = 'CheckSec' +    _desc = 'Output the exploit mitigations compiled with a loaded binary' +    _version = '0.1' +    _url = 'https://www.chrysalide.re/' -    def __init__(self): -        """Initialize the plugin for Chrysalide.""" +    _actions = ( PluginModule.PluginAction.FORMAT_POST_ANALYSIS_ENDED, ) -        interface = { -            'name' : 'CheckSec', -            'desc' : 'Output the exploit mitigations compiled with a loaded binary', -            'version' : '0.1', - -            'actions' : ( PluginModule.PGA_FORMAT_POST_ANALYSIS_ENDED, ) - -        } - -        super(CheckSec, self).__init__(**interface) - - -    def handle_format_analysis(self, action, format, gid, status): +    def _handle_format_analysis(self, action, format, gid, status):          """Get notified at the end of format analysis."""          if type(format) == ElfFormat:  | 
