cea-sec/miasm

View on GitHub
example/jitter/sandbox_pe_x86_32.py

Summary

Maintainability
B
5 hrs
Test Coverage
from pdb import pm
from miasm.analysis.sandbox import Sandbox_Win_x86_32
from miasm.core.locationdb import LocationDB
# Insert here user defined methods

# Parse arguments
parser = Sandbox_Win_x86_32.parser(description="PE sandboxer")
parser.add_argument("filename", help="PE Filename")
options = parser.parse_args()

# Create sandbox
loc_db = LocationDB()
sb = Sandbox_Win_x86_32(loc_db, options.filename, options, globals())

# Run
sb.run()

assert(sb.jitter.running is False)