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/03-syscall-write.svg | 338 +++++++++++++++++++-------------------- 1 file changed, 169 insertions(+), 169 deletions(-) (limited to 'design/mock/03-syscall-write.svg') diff --git a/design/mock/03-syscall-write.svg b/design/mock/03-syscall-write.svg index 140369e..5be4d5b 100644 --- a/design/mock/03-syscall-write.svg +++ b/design/mock/03-syscall-write.svg @@ -3,7 +3,7 @@ System calls -write(1, msg, 14) +write(1, msg, 14) kernel memory @@ -20,28 +20,28 @@ hello.c -11 -write( -1 -, msg, -14 -); +11 +write( +1 +, msg, +14 +); -mov -eax, 1 -mov -edi, 1 -lea -rsi, [msg] -mov -edx, 14 +mov +eax, 1 +mov +edi, 1 +lea +rsi, [msg] +mov +edx, 14 -syscall -12 -return -0 -; +syscall +12 +return +0 +; @@ -50,99 +50,99 @@ x86-64 -0 -0 -0 -0 -5 -5 -d -4 -a -1 -c -0 -1 -1 -5 -c -rip +0 +0 +0 +0 +5 +5 +d +4 +a +1 +c +0 +1 +1 +5 +c +rip -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -1 -rax +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +rax -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -1 -rdi +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +1 +rdi -0 -0 -0 -0 -5 -5 -d -4 -a -1 -c -0 -2 -0 -0 -4 -rsi +0 +0 +0 +0 +5 +5 +d +4 +a +1 +c +0 +2 +0 +0 +4 +rsi -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -0 -e -rdx +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +0 +e +rdx which call 1st 2nd @@ -154,54 +154,54 @@ memory read-only data -a1c0 -2004 +a1c0 +2004 -H -48 +H +48 -e -65 +e +65 -l -6c +l +6c -l -6c +l +6c -o -6f +o +6f -, -2c +, +2c -20 +20 -w -77 -a1c0 -200c +w +77 +a1c0 +200c -o -6f +o +6f -r -72 +r +72 -l -6c +l +6c -d -64 +d +64 -! -21 +! +21 -\n -0a +\n +0a -00 +00 @@ -212,7 +212,7 @@ -syscall +syscall @@ -220,74 +220,74 @@ what it runs -tty_write +tty_write -vfs_write +vfs_write -ksys_write -write +ksys_write +write system call 1 -rdi +rdi fd -1 +1 the terminal -rsi +rsi buf -5 -5 -d -4 -a -1 -c -0 -2 -0 -0 -4 +5 +5 +d +4 +a +1 +c +0 +2 +0 +0 +4 -rdx +rdx count -14 +14 bytes -rax +rax returns not yet the terminal's buffer -H +H -e +e -l +l -l +l -o +o -, +, -w +w -o +o 9 of 14 copied The program cannot reach the terminal. It leaves four numbers -in registers, and syscall hands them to the kernel. +in registers, and syscall hands them to the kernel. -- cgit v1.3