summaryrefslogtreecommitdiff
path: root/pwnlib/shellcraft/templates/i386/mov.asm
diff options
context:
space:
mode:
Diffstat (limited to 'pwnlib/shellcraft/templates/i386/mov.asm')
-rw-r--r--pwnlib/shellcraft/templates/i386/mov.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/pwnlib/shellcraft/templates/i386/mov.asm b/pwnlib/shellcraft/templates/i386/mov.asm
index 5bb0192..e3f1db5 100644
--- a/pwnlib/shellcraft/templates/i386/mov.asm
+++ b/pwnlib/shellcraft/templates/i386/mov.asm
@@ -190,8 +190,8 @@ else:
% else:
<%
a,b = fiddling.xor_pair(srcp, avoid = '\x00\n')
- a = hex(packing.unpack(a, dest.size))
- b = hex(packing.unpack(b, dest.size))
+ a = '%#x' % packing.unpack(a, dest.size)
+ b = '%#x' % packing.unpack(b, dest.size)
%>\
mov ${dest}, ${a}
xor ${dest}, ${a} ^ ${pretty(src)}