From b8ef731f42da12c857e6104aef47eb407d106809 Mon Sep 17 00:00:00 2001 From: serpilliere Date: Thu, 21 Aug 2014 09:23:53 +0200 Subject: Core: getbits use arch attrib (and can swap bytes); getbytes simply return bytes --- example/test_dis.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'example') diff --git a/example/test_dis.py b/example/test_dis.py index 7ce0cc31..ee71b7a2 100644 --- a/example/test_dis.py +++ b/example/test_dis.py @@ -112,6 +112,9 @@ elif b.startswith('\x7fELF'): if bs is None or options.shiftoffset is not None: + + if options.shiftoffset is None: + options.shiftoffset = "0" shift = int(options.shiftoffset, 16) log.warning('fallback to string input (offset=%s)' % hex(shift)) bs = bin_stream_str(b, shift=shift) -- cgit 1.4.1