rev/gdb_baby_step_4
This commit is contained in:
Executable
BIN
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
set pagination off
|
||||
|
||||
disassemble main
|
||||
|
||||
# Before function
|
||||
break *main+36
|
||||
|
||||
# After function
|
||||
break *main+43
|
||||
|
||||
run
|
||||
|
||||
set $eax_before = $eax
|
||||
continue
|
||||
set $eax_after = $eax
|
||||
|
||||
set $eax_diff = $eax_after / $eax_before
|
||||
|
||||
printf "eax before: 0x%x\n", $eax_before
|
||||
printf "eax after: 0x%x\n", $eax_after
|
||||
printf "picoCTF{%d}\n", $eax_diff
|
||||
|
||||
continue
|
||||
exit
|
||||
Executable
+3
@@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
gdb --command=gdbinit ./debugger0_d
|
||||
Reference in New Issue
Block a user