From f8740f6996eefc235af066a6686f52847c158a6b Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 14:12:42 -0300 Subject: design, revision 2: the whole context in every frame, a lens beside it The user's premise: show what pwndbg shows, hide nothing; the semantic views stay as a lens on the machine. So every frame holds the registers (all, each followed as a pointer), the stack telescope and the backtrace in a column that never changes, and the source, the disassembly and the scene's lens in the other. A value's ink says where it points (stack, heap, code, data; rwx underlined), its paper says what happened to it. JetBrains Mono NL for everything mono; the floor is mono 20, which a phone does not read: what narration depends on is also in the caption. Mocks 9 to 11 are drawn from a real recording of targets/list. --- design/mock/05-memory-write.svg | 526 ++++++++++++++++++++-------------------- 1 file changed, 263 insertions(+), 263 deletions(-) (limited to 'design/mock/05-memory-write.svg') diff --git a/design/mock/05-memory-write.svg b/design/mock/05-memory-write.svg index 2d0d264..1f37326 100644 --- a/design/mock/05-memory-write.svg +++ b/design/mock/05-memory-write.svg @@ -2,7 +2,7 @@ Where a pointer lives -hello.c:8 +hello.c:8 kernel memory @@ -18,35 +18,35 @@ hello.c -7 -char -buf[ -16 -] = -"Hello, world!\n" -; +7 +char +buf[ +16 +] = +"Hello, world!\n" +; -8 -char -*p = buf; +8 +char +*p = buf; -lea -rax, [rbp-0x20] +lea +rax, [rbp-0x20] -mov -[rbp-0x8], rax -9 -write( -1 -, p, -14 -); -10 -return -0 -; +mov +[rbp-0x8], rax +9 +write( +1 +, p, +14 +); +10 +return +0 +; @@ -55,113 +55,113 @@ x86-64 -0 -0 -0 -0 -5 -5 -d -4 -a -1 -c -0 -1 -1 -6 -d -rip +0 +0 +0 +0 +5 +5 +d +4 +a +1 +c +0 +1 +1 +6 +d +rip -0 -0 -0 -0 -7 -f -f -d -3 -a -2 -c -1 -e -4 -0 -rax -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -1 -rdi -0 -0 -0 -0 -7 -f -f -d -3 -a -2 -c -1 -e -3 -0 -rsp -0 -0 -0 -0 -7 -f -f -d -3 -a -2 -c -1 -e -6 -0 -rbp +0 +0 +0 +0 +7 +f +f +d +3 +a +2 +c +1 +e +4 +0 +rax +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +rdi +0 +0 +0 +0 +7 +f +f +d +3 +a +2 +c +1 +e +3 +0 +rsp +0 +0 +0 +0 +7 +f +f +d +3 +a +2 +c +1 +e +6 +0 +rbp stack from 7ffd 3a2c 1e30 · low addresses on top -+0 -+1 -+2 -+3 -+4 -+5 -+6 -+7 ++0 ++1 ++2 ++3 ++4 ++5 ++6 ++7 as text -main +main -3a2c -1e30 +3a2c +1e30 @@ -178,8 +178,8 @@ -3a2c -1e38 +3a2c +1e38 @@ -196,206 +196,206 @@ -3a2c -1e40 +3a2c +1e40 -48 +48 -65 +65 -6c +6c -6c +6c -6f +6f -2c +2c -20 +20 -77 -H -e -l -l -o -, - -w -buf -3a2c -1e48 +77 +H +e +l +l +o +, + +w +buf +3a2c +1e48 -6f +6f -72 +72 -6c +6c -64 +64 -21 +21 -0a +0a -00 +00 -00 -o -r -l -d -! -· -· -· -3a2c -1e50 +00 +o +r +l +d +! +· +· +· +3a2c +1e50 -00 +00 -3f +3f -9a +9a -c1 +c1 -77 +77 -d2 +d2 -8e +8e -5b -· -? -· -· -w -· -· -[ +5b +· +? +· +· +w +· +· +[ canary -3a2c -1e58 +3a2c +1e58 -40 +40 -1e +1e -2c +2c -3a +3a -fd +fd -7f +7f -00 +00 -00 -@ -· -, -: -· -· -· -· -p -3a2c -1e60 +00 +@ +· +, +: +· +· +· +· +p +3a2c +1e60 -00 +00 -1f +1f -2c +2c -3a +3a -fd +fd -7f +7f -00 +00 -00 -· -· -, -: -· -· -· -· +00 +· +· +, +: +· +· +· +· saved rbp -3a2c -1e68 +3a2c +1e68 -90 +90 -9d +9d -22 +22 -5e +5e -3c +3c -7f +7f -00 +00 -00 -· -· -" -^ -< -· -· -· +00 +· +· +" +^ +< +· +· +· return to -__libc_start_call_main +__libc_start_call_main - - - + + + - -rsp - + +rsp + - -rbp - + +rbp + the same eight bytes, low byte first, as one number -0 -0 -0 -0 -7 -f -f -d -3 -a -2 -c -1 -e -4 -0 - +0 +0 +0 +0 +7 +f +f +d +3 +a +2 +c +1 +e +4 +0 + = where -buf +buf starts -The pointer p is eight ordinary bytes on the stack. -Read as one number, they are the address of buf. +The pointer p is eight ordinary bytes on the stack. +Read as one number, they are the address of buf. -- cgit v1.3