From 3550a322e247d2ab61ecd05d6eac5c389f295a79 Mon Sep 17 00:00:00 2001 From: Maxime Vorwerk Date: Mon, 4 Nov 2024 10:13:53 +0100 Subject: [PATCH] format string 3 --- format_string_3/.gdb_history | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/format_string_3/.gdb_history b/format_string_3/.gdb_history index 071f7d0..49ba092 100644 --- a/format_string_3/.gdb_history +++ b/format_string_3/.gdb_history @@ -87,3 +87,33 @@ run got got exit +disassemble main +b *main+175 +run +got +disassemble 0x404018 +x *execve +x *puts +search --pointer 0x7ffff7e59bf0 +x/a 0x404018 +set {int}0x404018 = 0x7ffff7eba90f +x/a 0x404018 +set {int}0x404018 = 0x7ffff7eba9f0 +x/a 0x404018 +continue +run +got +search --pointer 0x7ffff7e59bf0 +x/a 0x404018 +p *puts +p *execve +set {int}0x404018 = 0x7ffff7eba9f0 +x/a 0x404018 +got +stepi +continue +run +set {int}0x404018 = 0x7ffff7eba9f0 +got +continue +exit