완료됨
`lldb` 명령어 모음이 있으면 도움이 될까요?
안녕하세요?
gdb
+ pwndbg
를 보던 중 어쩌다 저는 아직 gdb
를 못깔아서 lldb
를 계속 사용하게 되었습니다.
그래서 혹시 이런 lldb
명령어 모음이라도 있으면 도움이 될지요? (물론 공식 문서도 있습니다만)
gdb |
lldb |
---|---|
entry |
pro la -s |
context | re read \ di \ bt |
b *main |
br s -n main <br />b main |
c |
c |
disassemble main |
??? |
nearpc |
di |
b *main+64 |
<code>b -a `(int())main`+64</code> |
ni |
thread step-inst-over <br>ni |
si |
thread step-inst \ si |
finish |
thread step-out <br>finish |
x/10gx $rsp |
m rea -s8 -fx -c10 $sp |
x/5i $rip |
??? |
x/s 0x400000 |
m rea -f s 0x400000 |
tele |
??? |
vmmap |
image list ? |
r $(python3 -c "print('\xff' * 100)") |
% lldb -- a.out $(python3 -c "print('\xff' * 100)") |
r $(python3 -c "print('\xff' * 100)") <<< $(python3 -c "print('dreamhack')") |
??? |
아직은 몇 항목은 잘 찾기 힘들었다고 생각되었습니다.
어떻게 생각하시는지요?
참고문헌
- https://lldb.llvm.org/use/map.html
- https://stackoverflow.com/questions/23234798/can-lldb-break-on-functionoffset
- https://bookdown.org/yihui/rmarkdown-cookbook/special-chars.html
PS :
- markdown 표 셀 안에서
\n
나 ` 문자는 어떻게 추가하는지요?
#시스템해킹
#툴
#gdb
작성자 정보
답변
1
wyv3rn
무플 방지 위원회장
대부분 공식 문서에 나와있는데요?!
다만 gdb의 확장 프로그램인 pwngdb나 gef 등에서 사용 가능한 명령어는 빠져있네요.
개인적으로는 gdb를 사용하는게 더 낫지 않을까 싶습니다 ㅎㅎ