summaryrefslogtreecommitdiff
path: root/pwnlib/shellcraft/templates/mips/mov.asm
diff options
context:
space:
mode:
Diffstat (limited to 'pwnlib/shellcraft/templates/mips/mov.asm')
-rw-r--r--pwnlib/shellcraft/templates/mips/mov.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/pwnlib/shellcraft/templates/mips/mov.asm b/pwnlib/shellcraft/templates/mips/mov.asm
index 28e3c77..9eb795f 100644
--- a/pwnlib/shellcraft/templates/mips/mov.asm
+++ b/pwnlib/shellcraft/templates/mips/mov.asm
@@ -130,8 +130,8 @@ if src_reg == 0:
% else:
<%
a,b = fiddling.xor_pair(srcp, avoid = '\x00\n')
-a = hex(packing.unpack(a, 32))
-b = hex(packing.unpack(b, 32))
+a = '%#x' % packing.unpack(a, 32)
+b = '%#x' % packing.unpack(b, 32)
%>
li ${tmp_reg}, ${a} ^ ${pretty(src)}
li ${dst}, ${a}