Information Security

[Dreamhack] pwngdb, pwntools 설치 본문

INTERLUDE/System Hacking

[Dreamhack] pwngdb, pwntools 설치

sohexz 2022. 9. 29. 19:16

<pwngdb>

git 설치

sudo apt install git-all

pwngdb 설치

git clone http://github.com/pwndbg/pwndbg

디렉토리 이동 후 셋업파일 실행

cd pwndbg
./setup.sh

오류가 계속되어서 다른 툴을 사용하기로 하였다

 

<gdb-peda>

sudo apt-get install gdb -y
git clone https://github.com/longld/peda.git ~/peda

<pwntools>

sudo apt update
sudo apt install python3 python3-pip python3-dev git libssl-dev libffi-dev build-essential
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install --upgrade pwntools

gdb 실행했을 때 peda가 자동으로 실행되도록 설정

다음과 같이 실행

gdb '프로그램명'
gdb '프로그램명' 'core파일명'
gdb '프로그램명' '실행중인 프로세스 pid'

'INTERLUDE > System Hacking' 카테고리의 다른 글

[Dreamhack] Return Address Overwrite  (1) 2022.11.01
[Dreamhack] shell_basic  (0) 2022.09.29
[Dreamhack] basic_exploitation_000  (1) 2022.09.22
BOF 스터디  (0) 2022.09.20
[FTZ] Level 12  (0) 2021.11.23