pwndbg 설치 오류
리눅스 환경 입니다.
vi ~/.gdbinit 입니다.
강의를 듣던 중 pwndbg를 설치하고 .gdbinit 에서 설정도 다 해줬는데 자꾸 오류가 발생하네요..
git clone https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh
이렇게 설치 했을 때 오류도 발생하지 않고 잘 설치되었습니다.
그런데 gdb 로 실행하게 되면
faper@vect0r:~$ gdb
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Traceback (most recent call last):
File "/home/faper/pwndbg/gdbinit.py", line 101, in <module>
import pwndbg # noqa: F401
File "/home/faper/pwndbg/pwndbg/__init__.py", line 6, in <module>
import pwndbg.color
File "/home/faper/pwndbg/pwndbg/color/__init__.py", line 7, in <module>
from . import theme
File "/home/faper/pwndbg/pwndbg/color/theme.py", line 2, in <module>
from pwndbg.gdblib import config
File "/home/faper/pwndbg/pwndbg/gdblib/__init__.py", line 4, in <module>
from pwndbg.gdblib import arch as arch_mod
File "/home/faper/pwndbg/pwndbg/gdblib/arch.py", line 2, in <module>
import pwnlib
File "/home/faper/.local/lib/python3.10/site-packages/pwnlib/__init__.py", line 37, in <module>
importlib.import_module('.%s' % module, 'pwnlib')
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/faper/.local/lib/python3.10/site-packages/pwnlib/args.py", line 7, in <module>
from . import term
File "/home/faper/.local/lib/python3.10/site-packages/pwnlib/term/__init__.py", line 5, in <module>
from . import readline
File "/home/faper/.local/lib/python3.10/site-packages/pwnlib/term/readline.py", line 3, in <module>
from . import term
File "/home/faper/.local/lib/python3.10/site-packages/pwnlib/term/term.py", line 30, in <module>
fd = sys.stdout.buffer
AttributeError: '_GdbOutputFile' object has no attribute 'buffer'
이런 오류가 발생하는데 혹시 원인을 알고 계신 분 있을까요..
#pwnable
작성자 정보
답변
1
faper
대표 업적 없음
자답 하자면 저게 Ubuntu 22.04 Server 인데 Desktop 버전으로 재설치 하니까 고쳐졌습니다. SSH로 붙어서 맥북에서 쓸려고 한건데 그냥 가상머신으로 하는게 답인가 봅니다.