kernel debuging with pwndbg - pwndbg 설치

2023. 8. 27. 13:17·Kernel Exploit/Theory
728x90
반응형

서론

gef가 익숙하고 편해서 사용하고 있었으나, 무슨 이유인지 모르겠지만 kernel debuging 시 register, stack, code 모든 영역의 값이 제대로 나오지 않는 문제가 발생했다.

지원은 하긴 할텐데 정확히 이유를 알 수 없어 어쩔 수 없이 pwndbg를 설치하였다.

 

설치 방법

아래를 차례로 실행하면 끝.

git clone https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh

 

kernel debuging 기본 셋팅

아래 스크립트를 기준으로 실행하면 된다.

#! /bin/sh

gdb \
	-ex "add-auto-load-safe-path $(pwd)" \
	-ex "file vmlinux" \
	-ex 'set arch i386:x86-64' \
	-ex 'target remote localhost:1234' \
	-ex 'gef config gef.debug 1' \
	-ex 'break start_kernel' \
	-ex 'continue' \
	-ex 'disconnect' \
	-ex 'set arch i386:x86-64' \
	-ex 'target remote localhost:1234' \

 

728x90
반응형
저작자표시 비영리 변경금지 (새창열림)

'Kernel Exploit > Theory' 카테고리의 다른 글

Kernel - SMEP 우회, krop  (0) 2023.09.07
kernel - ret2usr  (0) 2023.08.27
rootfs.cpio 파일 추가 shell script  (0) 2023.08.21
Kernel 보호기법 및 우회법  (0) 2023.08.20
exploit binary를 커널 이미지에 삽입하기.  (0) 2023.08.20
'Kernel Exploit/Theory' 카테고리의 다른 글
  • Kernel - SMEP 우회, krop
  • kernel - ret2usr
  • rootfs.cpio 파일 추가 shell script
  • Kernel 보호기법 및 우회법
wyv3rn
wyv3rn
아저씨의 흔한 취미. wyv3rn#1249
  • wyv3rn
    think storage
    wyv3rn
  • 전체
    오늘
    어제
    • 분류 전체보기 (520)
      • To do list (7)
        • Doing (1)
        • Complete (6)
      • Diary (35)
      • Tips & theory (75)
      • Kernel Exploit (28)
        • Theory (16)
        • Exercise (5)
      • File Structure (6)
      • Wargame (322)
        • pwn.college (34)
        • Dreamhack (156)
        • pwnable.kr (15)
        • Lord of Sqlinjection (4)
        • Cryptohack (20)
        • Root me (27)
        • CodeEngn (4)
        • Exploit Education (22)
        • ROP Emporium (8)
        • H4C (10)
        • Hackerchool (22)
      • CTF (46)
        • Solved (44)
        • Unsolved (2)
      • Script (0)
      • RubiyaLap (0)
  • 블로그 메뉴

    • 홈
    • 방명록
  • 링크

  • 공지사항

    • PWN wargame 모음 (및 느낀점)
    • 비공개 글들에 대해.
    • 뭐라도 하나 얻어가시길...
  • 인기 글

  • 태그

    x86
    docker
    heap
    Buffer Overflow
    exploit education
    Me
    RTL
    hackerschool
    BOF
    FSB
    _IO_FILE
    root-me
    phoenix
    pwntools
    root
    ROOT ME
    Format String Bug
    la ctf
    rop
    CANARY
    cryptohack
    libc
    lob
    32bit
    dreamhack
    64bit
    vtable
    tcache
    pwnable.kr
    x64
  • 최근 댓글

  • 최근 글

  • 250x250
    반응형
  • hELLO· Designed By정상우.v4.10.3
wyv3rn
kernel debuging with pwndbg - pwndbg 설치
상단으로

티스토리툴바