blob: 0a4c88dbaf46de05b5bbbce4df848488e02b6e55 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)
|