summaryrefslogtreecommitdiff
path: root/plugins/python/checksec
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-05-17 18:05:48 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-05-17 18:05:48 (GMT)
commitd110791309783e6e30df837a81cf8e14e1ac9641 (patch)
tree75e65909e080cc3ace578c7beb6f0bdae6dc18c1 /plugins/python/checksec
parentf3e136eab9fd6adcb51988c9f70ca7f35552abc4 (diff)
Updated the plugin system and its Python documentation.
Diffstat (limited to 'plugins/python/checksec')
-rw-r--r--plugins/python/checksec/plugin.py21
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: