완료됨
$fs_base+0x28 디버깅 관련

강의에서 처럼 마스터 카나리의 주소를 알기위해 디버깅을 하여 x/x $fs_base+0x28 이렇게 하였는데
Argument to arithmetic operation not a number or boolean. 와 같은 오류가 뜹니다
어떻게 해야하나요??

pwndbg> x/x $rbp-110
0x7ffff77eeee2:	0x00000000
pwndbg> x/x $fs_base+0x28
Argument to arithmetic operation not a number or boolean.
pwndbg> p $fs_base+0x28
Argument to arithmetic operation not a number or boolean.
pwndbg> p /x *(int *)($fs_base+0x28)
Argument to arithmetic operation not a number or boolean.
pwndbg> x/w $fs_base+0x28
Argument to arithmetic operation not a number or boolean.
#시스템해킹 #공격기법 #master_canary
작성자 정보
더 깊이 있는 답변이 필요할 때
드림핵 팀과 멘토에게 직접 문의해 보세요!
답변 1

저도 같은 현상이 있어서 찾아봤는데,
gdb 8 버전 이후부터 동작합니다.

gdb -v로 버전을 체크해보시기 바랍니다.

함께 읽으면 좋을 글(reference)
Using GDB to read MSRs
Why are the data segment registers always null in gdb?
사용자 공간 애플리케이션에서 FS 및 GS 세그먼트 사용
Detail about MSR_GS_BASE in linux x86 64
AMD64 Architecture Programmer’s Manual

2022.11.24. 01:46