diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-07-28 13:27:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-28 13:27:01 +0200 |
| commit | 7acc9f00489f0f9444b8fa2e5068317c0de90f38 (patch) | |
| tree | fb69aea0d7dcd0438701b0b71be3833997ecabef /example/disasm/full.py | |
| parent | bb1cc452ca771ea6800ccfebd4c45237ba9a7554 (diff) | |
| parent | ab0cf7308e9fb0c5ddeb2e49da75193cd7d50304 (diff) | |
| download | miasm-7acc9f00489f0f9444b8fa2e5068317c0de90f38.tar.gz miasm-7acc9f00489f0f9444b8fa2e5068317c0de90f38.zip | |
Merge pull request #803 from commial/feature/linux-env
Feature/linux env
Diffstat (limited to 'example/disasm/full.py')
| -rw-r--r-- | example/disasm/full.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/example/disasm/full.py b/example/disasm/full.py index 5658c2c2..746d3ee4 100644 --- a/example/disasm/full.py +++ b/example/disasm/full.py @@ -42,7 +42,7 @@ parser.add_argument('-l', "--dontdis-retcall", action="store_true", help="If set, disassemble only call destinations") parser.add_argument('-s', "--simplify", action="count", help="Apply simplifications rules (liveness, graph simplification, ...)") -parser.add_argument('-o', "--shiftoffset", default=None, +parser.add_argument('-o', "--shiftoffset", default=0, type=lambda x: int(x, 0), help="Shift input binary by an offset") parser.add_argument('-a', "--try-disasm-all", action="store_true", @@ -64,9 +64,8 @@ if args.verbose: log.info('Load binary') if args.rawbinary: - shift = args.shiftoffset if args.shiftoffset is not None else 0 cont = Container.fallback_container(open(args.filename, "rb").read(), - None, addr=shift) + vm=None, addr=args.shiftoffset) else: with open(args.filename, "rb") as fdesc: cont = Container.from_stream(fdesc, addr=args.shiftoffset) |