완료됨
system 호출시 에러
pwndbg> ni
[New process 2031]
process 2031 is executing new program: /bin/dash
Error in re-setting breakpoint 1: No symbol table is loaded.  Use the "file" command.
Error in re-setting breakpoint 1: No symbol "main" in current context.
Error in re-setting breakpoint 1: No symbol "main" in current context.
Error in re-setting breakpoint 1: No symbol "main" in current context.
sh: 1: Syntax error: Unterminated quoted string
[1] Leak Canary
Buf: [Inferior 2 (process 2031) exited with code 02]
pwndbg> 

gdb로 브레이크포인트걸고 실행하다보면 system함수 호출후 이런 에러가 뜨는데 뭔가요

#pwnable
작성자 정보
더 깊이 있는 답변이 필요할 때
드림핵 팀과 멘토에게 직접 문의해 보세요!
답변 1
avatar
wyv3rn
무플 방지 위원회장

gdb로 보셔서 그런데
process 2031 is executing new program: /bin/dash
여기서 이미 셀이 실행된거고
그 다음 오류나 명령어들은 gdb에서는 계속 셀코드 이후를 실행해버리기에 표시되는 것들입니다.

2022.11.29. 22:55