From 445a7dd3b70dc443c0c03309e3ee03e839cd4fdc Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Wed, 19 Sep 2018 08:20:09 +0200 Subject: Deleted old dead code for plugins. --- src/plugins/plugin-def.h | 91 ------------------------------------------------ 1 file changed, 91 deletions(-) diff --git a/src/plugins/plugin-def.h b/src/plugins/plugin-def.h index 8b7ac7d..643b6e2 100644 --- a/src/plugins/plugin-def.h +++ b/src/plugins/plugin-def.h @@ -177,98 +177,7 @@ typedef enum _PluginAction /* Intervention en toute fin d'analyse de contenu chargé */ PGA_DETECTION_OBFUSCATORS = DPC_BINARY_PROCESSING | DPS_DETECTION | DEFINE_PLUGIN_ACTION(0), - - - - - PGA_DISASSEMBLE = (1 << 1), /* Désassemblage (non trivial) */ - - PGA_BINARY_DISASSEMBLED = (1 << 2), /* Désassemblage fini */ - PGA_BINARY_LINKED = (1 << 3), /* Liaison en place */ - PGA_BINARY_BOUNDED = (1 << 4), /* Limites de routines définies*/ - PGA_BINARY_GROUPED = (1 << 5), /* Instructions regroupées */ - PGA_BINARY_PRINTED = (1 << 6), /* Instructions imprimées */ - - PGA_DISASS_PROCESS = (1 << 6), /* Traitement niveau assembleur*/ - PGA_CODE_PROCESS = (1 << 7), /* Traitement du code existant */ - - PGA_DEBUGGER_ATTACH = (1 << 8), /* Activation d'un débogueur */ - PGA_DEBUGGER_DETACH = (1 << 9), /* Désactivation d'un débogueur*/ - - /** - * Organisation interne : - * - rassemblement massif de tous les greffons. - * - marquage des cellules vides. - */ - PGA_ALL = 0xfffffffe, - PGA_EMPTY = 0xffffffff - -} PluginAction; - - - -/* MAJ !! */ -#define PGA_COUNT 16 - - - - - - -/* Types de greffon */ -typedef enum _PluginType -{ - PGT_BINARY = (1 << 0) /* Actions sur un binaire */ - - -} PluginType; - - -/* Action(s) menée(s) par le greffon */ -#if 0 -typedef enum _PluginAction -{ - PGA_NONE = (0 << 0), /* Aucun intérêt */ - - PGA_FORMAT_MATCHER = (1 << 0), /* Détection et chargement */ - - PGA_DISASSEMBLE = (1 << 1), /* Désassemblage (non trivial) */ - - PGA_BINARY_DISASSEMBLED = (1 << 2), /* Désassemblage fini */ - PGA_BINARY_LINKED = (1 << 3), /* Liaison en place */ - PGA_BINARY_BOUNDED = (1 << 4), /* Limites de routines définies*/ - PGA_BINARY_GROUPED = (1 << 5), /* Instructions regroupées */ - PGA_BINARY_PRINTED = (1 << 6), /* Instructions imprimées */ - - PGA_DISASS_PROCESS = (1 << 6), /* Traitement niveau assembleur*/ - PGA_CODE_PROCESS = (1 << 7), /* Traitement du code existant */ - - PGA_DEBUGGER_ATTACH = (1 << 8), /* Activation d'un débogueur */ - PGA_DEBUGGER_DETACH = (1 << 9) /* Désactivation d'un débogueur*/ - } PluginAction; -#endif - - - -/* Actions éligibles pour run_plugins_on_binary() */ -#define PGA_BINARY_ACTIONS ( 0 \ - | PGA_BINARY_DISASSEMBLED | PGA_BINARY_LINKED \ - | PGA_BINARY_BOUNDED | PGA_BINARY_PRINTED \ - ) - - - -/* Fournit une indication sur le(s) type(s) du greffon présent. */ -//typedef PluginType (* get_plugin_type_fc) (void); - -/* Fournit une indication sur le type d'opération(s) menée(s). */ -//typedef PluginAction (* get_plugin_action_fc) (void); - - - - - -- cgit v0.11.2-87-g4458