Self-Improvement
CI20 MIPS에서 gef 오류 (pattern_libc_ver = re.compile(rb"glibc (\d+)\.(\d+)")) 본문
MIPS
CI20 MIPS에서 gef 오류 (pattern_libc_ver = re.compile(rb"glibc (\d+)\.(\d+)"))
JoGeun 2021. 3. 15. 17:50gef 는 python3를 기본으로 동작된다.
python2가 주로 이루는 환경이라면 gef-legacy를 사용해주자.
hugsy/gef-legacy
Legacy version of GEF running for GDB+Python2. Contribute to hugsy/gef-legacy development by creating an account on GitHub.
github.com
$ git clone github.com/hugsy/gef-legacy.git
$ echo source [디렉토리]/gef.py >> ~/.gdbinit
$ gdb -q
* 최종적인 명령어는 위가 맞지만 사전에 아래의 명령어를 수행하고 오류가 발생하여 위 명령어를 수행했다. (~/.gdbinit 파일의 내용은 삭제해주는 것 중요
$ wget -O ~/.gdbinit-gef.py -q http://gef.blah.cat/py
$ echo source ~/.gdbinit-gef.py >> ~/.gdbinit
'MIPS' 카테고리의 다른 글
mips rop 예제들 (0) | 2021.03.16 |
---|---|
MIPSROP IDA Plugin 설치 오류 (No module named shims) (0) | 2021.03.16 |
CI20 MIPS 커널 버전 업데이트 과정 (0) | 2021.03.15 |
CI20 MIPS Repository 오류 wheezy (They have been ignored, or old ones used instead) (0) | 2021.03.15 |
QEMU - MIPSel 환경 설정 및 apt-get 경로 오류 수정 (0) | 2021.02.02 |