diff --git a/rev/gdb_baby_step_3/debugger0_c b/rev/gdb_baby_step_3/debugger0_c new file mode 100755 index 0000000..de81f13 Binary files /dev/null and b/rev/gdb_baby_step_3/debugger0_c differ diff --git a/rev/gdb_baby_step_3/gdbinit b/rev/gdb_baby_step_3/gdbinit new file mode 100644 index 0000000..9cdb2f0 --- /dev/null +++ b/rev/gdb_baby_step_3/gdbinit @@ -0,0 +1,17 @@ +set pagination off + +disassemble main + +break *main+22 +run + +x/4xb $rbp-4 + +printf "picoCTF{0x%02x%02x%02x%02x}\n", \ + *(unsigned char *)($rbp-4), \ + *(unsigned char *)($rbp-3), \ + *(unsigned char *)($rbp-2), \ + *(unsigned char *)($rbp-1) + +continue +exit diff --git a/rev/gdb_baby_step_3/solve.sh b/rev/gdb_baby_step_3/solve.sh new file mode 100755 index 0000000..d9c10a9 --- /dev/null +++ b/rev/gdb_baby_step_3/solve.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +gdb --command=gdbinit ./debugger0_c