diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-08-04 09:12:11 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2015-08-09 00:38:39 +0200 |
| commit | 3e168dc130dbf8183eaa023441d57dd2f09b80d1 (patch) | |
| tree | 7c1680260a0e3b418c0142d261cab6127cffd7ff /example/jitter/sandbox_elf_aarch64l.py | |
| parent | 47898689e5898f91a61a4c39042b86acacce18f6 (diff) | |
| download | miasm-3e168dc130dbf8183eaa023441d57dd2f09b80d1.tar.gz miasm-3e168dc130dbf8183eaa023441d57dd2f09b80d1.zip | |
Add aarch64l md5 sandbox and test
Diffstat (limited to 'example/jitter/sandbox_elf_aarch64l.py')
| -rw-r--r-- | example/jitter/sandbox_elf_aarch64l.py | 28 |
1 files changed, 28 insertions, 0 deletions
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) |