[usniper] Normalize address

This commit is contained in:
Oleksii Shevchuk 2018-01-12 11:16:45 +02:00
parent f709cd4f2d
commit 8a60948bd7
1 changed files with 7 additions and 1 deletions

View File

@ -40,9 +40,15 @@ class USniper(PupyModule):
dump.set_defaults(func=self.dump)
def start(self, args):
offset = args.offset
if not offset.lower().startswith('0x'):
offset = '0x' + offset.upper()
else:
offset = '0x' + offset[2:].upper()
if self.client.conn.modules['usniper'].start(
args.path,
args.offset,
offset,
args.reg,
args.ret,
'string' if args.string else None,