diff options
| author | Cyrille Bagard <nocbos@gmail.com> | 2020-05-17 18:05:48 (GMT) | 
|---|---|---|
| committer | Cyrille Bagard <nocbos@gmail.com> | 2020-05-17 18:05:48 (GMT) | 
| commit | d110791309783e6e30df837a81cf8e14e1ac9641 (patch) | |
| tree | 75e65909e080cc3ace578c7beb6f0bdae6dc18c1 /plugins/python/checksec | |
| parent | f3e136eab9fd6adcb51988c9f70ca7f35552abc4 (diff) | |
Updated the plugin system and its Python documentation.
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:  | 
