about summary refs log tree commit diff stats
path: root/example/jitter/sandbox_elf_ppc32.py
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2018-03-02 10:09:58 +0100
committerGitHub <noreply@github.com>2018-03-02 10:09:58 +0100
commit00e567eacd167047de5b088a94f554473e7ca505 (patch)
tree8d6b3e6077c97f368dab884b8a889bba75e74f5a /example/jitter/sandbox_elf_ppc32.py
parent0606dd974a5ff0c3d6fb58e002b9319235a2dfbd (diff)
parentcc2ee2c61dd4719bd7f9a85193590dffcda46991 (diff)
downloadmiasm-00e567eacd167047de5b088a94f554473e7ca505.tar.gz
miasm-00e567eacd167047de5b088a94f554473e7ca505.zip
Merge pull request #688 from a-vincent/arch_ppc
Add support for PowerPC 32bit big-endian processors: "ppc32b"
Diffstat (limited to '')
-rw-r--r--example/jitter/sandbox_elf_ppc32.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/example/jitter/sandbox_elf_ppc32.py b/example/jitter/sandbox_elf_ppc32.py
new file mode 100644
index 00000000..c5960e8e
--- /dev/null
+++ b/example/jitter/sandbox_elf_ppc32.py
@@ -0,0 +1,25 @@
+import os
+from pdb import pm
+from miasm2.analysis.sandbox import Sandbox_Linux_ppc32b
+from miasm2.jitter.csts import *
+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_ppc32b.parser(description="ELF sandboxer")
+parser.add_argument("filename", help="ELF Filename")
+options = parser.parse_args()
+
+# Create sandbox
+sb = Sandbox_Linux_ppc32b(options.filename, options, globals())
+log_func.setLevel(logging.ERROR)
+
+sb.run()