From 3e168dc130dbf8183eaa023441d57dd2f09b80d1 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Tue, 4 Aug 2015 09:12:11 +0200 Subject: Add aarch64l md5 sandbox and test --- example/jitter/sandbox_elf_aarch64l.py | 28 ++++++++++++++++++++++++++++ example/samples/md5_aarch64l | Bin 0 -> 18888 bytes 2 files changed, 28 insertions(+) create mode 100644 example/jitter/sandbox_elf_aarch64l.py create mode 100755 example/samples/md5_aarch64l (limited to 'example') diff --git a/example/jitter/sandbox_elf_aarch64l.py b/example/jitter/sandbox_elf_aarch64l.py new file mode 100644 index 00000000..0a4c88db --- /dev/null +++ b/example/jitter/sandbox_elf_aarch64l.py @@ -0,0 +1,28 @@ +import os +from pdb import pm +from miasm2.analysis.sandbox import Sandbox_Linux_aarch64l +from miasm2.jitter.jitload import log_func +import logging + + +# Python auto completion +filename = os.environ.get('PYTHONSTARTUP') +if filename and os.path.isfile(filename): + execfile(filename) + +# Insert here user defined methods + +# Parse arguments +parser = Sandbox_Linux_aarch64l.parser(description="ELF sandboxer") +parser.add_argument("filename", help="ELF Filename") +options = parser.parse_args() + +# Create sandbox +sb = Sandbox_Linux_aarch64l(options.filename, options, globals()) + +log_func.setLevel(logging.ERROR) + +# Run +sb.run() + +assert(sb.jitter.run is False) diff --git a/example/samples/md5_aarch64l b/example/samples/md5_aarch64l new file mode 100755 index 00000000..700b58bd Binary files /dev/null and b/example/samples/md5_aarch64l differ -- cgit 1.4.1