Exploit Tech: Return Address Overwrite에서 실습하는 문제가 있길래 문제를 푸는중이었습니다.
파일을 열어서 버퍼 오버플로우를 발생시켰고, Segmentation fault (core dumped) 라는 에러가 떴습니다
아 드디어 코어파일이 생성됐구나 싶어서 gdb -c core -q를 입력했는데
pwndbg: loaded 160 pwndbg commands and 47 shell commands. Type pwndbg [--shell | --all] [filter] for a list.
pwndbg: created $rebase, $base, $ida GDB functions (can be used with print/break)
/home/mari/core: No such file or directory.
------- tip of the day (disable with set show-tips off) -------
Pwndbg sets the SIGLARM, SIGBUS, SIGPIPE and SIGSEGV signals so they are not passed to the app; see info signals for full GDB signals configuration
파일이 없다고 뜨는겁니다..
실습 처음에 버퍼 오버플로우를 발생시킬 땐 아예 (core dumped) 이것도 안떠서 ulimit -c unlimited 로 코어파일이 생성되게 했거든요.
그랬더니 (core dumped) 메세지는 뜨는데, 코어파일은 생성이 안되는거 같습니다.
이거 어떻게 해결하나요?ㅠ
윈도우 11 사용하고 있고, ubuntu 22.04 쓰는중입니다. VMware는 자꾸억까당해서안쓰고그냥터미널에서 코딩하는중입니다.
https://reakwon.tistory.com/220
참고해보시겠어요