diff options
| author | Camille Mougey <commial@gmail.com> | 2015-02-13 13:58:31 +0100 |
|---|---|---|
| committer | Camille Mougey <commial@gmail.com> | 2015-02-13 13:58:31 +0100 |
| commit | 12d1f2f3b7ff01db52dba68f4abe8294257ad705 (patch) | |
| tree | 7b312012e5afb81134b1dbacde1a30de721cf922 /example/jitter/sandbox_pe_x86_64.py | |
| parent | 44df579e8d114725b85ade8d5b5d4dc4df16555f (diff) | |
| parent | c6e218705278303ec06d418ed9e0548077c4517d (diff) | |
| download | miasm-12d1f2f3b7ff01db52dba68f4abe8294257ad705.tar.gz miasm-12d1f2f3b7ff01db52dba68f4abe8294257ad705.zip | |
Merge pull request #68 from serpilliere/sandbox_win_x86_64
Sandbox win x86 64
Diffstat (limited to 'example/jitter/sandbox_pe_x86_64.py')
| -rw-r--r-- | example/jitter/sandbox_pe_x86_64.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/example/jitter/sandbox_pe_x86_64.py b/example/jitter/sandbox_pe_x86_64.py new file mode 100644 index 00000000..8d9db88e --- /dev/null +++ b/example/jitter/sandbox_pe_x86_64.py @@ -0,0 +1,23 @@ +import os +from pdb import pm +from miasm2.analysis.sandbox import Sandbox_Win_x86_64 + +# 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_Win_x86_64.parser(description="PE sandboxer") +parser.add_argument("filename", help="PE Filename") +options = parser.parse_args() + +# Create sandbox +sb = Sandbox_Win_x86_64(options.filename, options, globals()) + +# Run +sb.run() + +assert(sb.jitter.run is False) |