diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-05-11 00:58:05 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-05-11 00:58:05 (GMT) |
commit | 46bcc7f122245f22772fd3e38d16e6afa7bd5881 (patch) | |
tree | d3c2ba1a9999e373428954f24d0e60c1ea63b756 /src/arch/processor.h | |
parent | 1bda6c517d30d873ff0d92a96380946ef944c9ae (diff) |
Provided a way to look for ROP gadgets in binary code.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@533 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/arch/processor.h')
-rw-r--r-- | src/arch/processor.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/arch/processor.h b/src/arch/processor.h index d650266..a856942 100644 --- a/src/arch/processor.h +++ b/src/arch/processor.h @@ -74,7 +74,17 @@ MemoryDataSize g_arch_processor_get_instruction_size(const GArchProcessor *); GArchInstruction *g_arch_processor_decode_instruction(const GArchProcessor *, GProcContext *, const bin_t *, off_t *, off_t, vmpa_t, GBinFormat *) __attribute__ ((deprecated)); /* Désassemble une instruction dans un flux de données. */ -GArchInstruction *g_arch_processor_disassemble(const GArchProcessor *, GProcContext *, const bin_t *, vmpa2t *, phys_t); +GArchInstruction *g_arch_processor_disassemble(const GArchProcessor *, GProcContext *, const bin_t *, vmpa2t *, phys_t) __attribute__ ((deprecated)); + + + +#define g_arch_processor_disassemble_nextgen(_proc, _ctx, _cnt, _pos) \ + ({ \ + const bin_t *_bin_data; \ + off_t _bin_length; \ + _bin_data = g_binary_content_get(_cnt, &_bin_length); \ + g_arch_processor_disassemble(_proc, _ctx, _bin_data, _pos, _bin_length); \ + }) |