강의 내용에 따라 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".
GEF for linux ready, type gef' to start,
gef config' to configure
90 commands loaded and 5 functions added for GDB 12.1 in 0.00ms using Python engine 3.10
Traceback (most recent call last):
File "/home/dot/hacking_study/pwndbg/gdbinit.py", line 84, in <module>
import pwndbg # noqa: F401
File "/home/dot/hacking_study/pwndbg/pwndbg/init.py", line 11, in <module>
load_commands()
File "/home/dot/hacking_study/pwndbg/pwndbg/commands/init.py", line 515, in load_commands
import pwndbg.commands.aslr
File "/home/dot/hacking_study/pwndbg/pwndbg/commands/aslr.py", line 29, in <module>
def aslr(state=None):
File "/home/dot/hacking_study/pwndbg/pwndbg/commands/init.py", line 457, in call
return _ArgparsedCommand(self.parser, function, command_name=self._command_name)
File "/home/dot/hacking_study/pwndbg/pwndbg/commands/init.py", line 423, in init
super(_ArgparsedCommand, self).init(function, command_name=command_name, *a, **kw)
File "/home/dot/hacking_study/pwndbg/pwndbg/commands/init.py", line 72, in init
raise Exception('Cannot override non-whitelisted built-in command "%s"' % command_name)
Exception: Cannot override non-whitelisted built-in command "aslr"
이런 에러가 나와요 ㅠㅠ
왜 이런건가요..?
(현재 저의 환경은 Ubuntu 22.04 LTS고, Python의 버전은 3.10.6입니다)
GEF랑 Pwndbg가 동시에 설치되어 있어서 명령어 충돌이 발생한거 같습니다.
둘 중 하나를 제거해보세요