rev/bit_o_asm4

This commit is contained in:
2026-07-01 23:21:26 +09:00
parent 220e517da8
commit db31455d26
2 changed files with 23 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
<+0>: endbr64
<+4>: push rbp
<+5>: mov rbp,rsp
<+8>: mov DWORD PTR [rbp-0x14],edi
<+11>: mov QWORD PTR [rbp-0x20],rsi
<+15>: mov DWORD PTR [rbp-0x4],0x9fe1a
<+22>: cmp DWORD PTR [rbp-0x4],0x2710
<+29>: jle 0x55555555514e <main+37>
<+31>: sub DWORD PTR [rbp-0x4],0x65
<+35>: jmp 0x555555555152 <main+41>
<+37>: add DWORD PTR [rbp-0x4],0x65
<+41>: mov eax,DWORD PTR [rbp-0x4]
<+44>: pop rbp
<+45>: ret
+9
View File
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
RBP_0X4="$((16#9fe1a))"
if [ "$RBP_0X4" -le "$((16#2710))" ]; then
echo "picoCTF{$(("$RBP_0X4" + 16#65))}"
else
echo "picoCTF{$(("$RBP_0X4" - 16#65))}"
fi