about summary refs log tree commit diff stats
path: root/example/jitter/sandbox_elf_ppc32.py
blob: d59181de1672c83895b4e4e8bf5a869049ddc83d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os
from pdb import pm
from miasm.analysis.sandbox import Sandbox_Linux_ppc32b
from miasm.core.locationdb import LocationDB
from miasm.jitter.csts import *
from miasm.jitter.jitload import log_func
import logging

# 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
loc_db = LocationDB()
sb = Sandbox_Linux_ppc32b(loc_db, options.filename, options, globals())
log_func.setLevel(logging.ERROR)

sb.run()