Skip to content

Commit f79f95d

Browse files
f0rkizardus
authored andcommitted
improved pwndbg install
1 parent d128a52 commit f79f95d

File tree

3 files changed

+14
-10
lines changed

3 files changed

+14
-10
lines changed

pwndbg/install

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
#!/bin/bash -ex
2-
set -e -o pipefail
32

43
git clone --depth 1 https://github.com/pwndbg/pwndbg
54

65
source ctf-tools-venv-activate
76

87
pushd pwndbg
98
pip install -Ur ./requirements.txt
10-
popd
11-
12-
# pwndbg brings it's own capstone/unicorn submodules
13-
# we ignore this for now and install the deps ourselfs
14-
#git submodule update --init --recursive
159

16-
# install capstone/unicron dependencies
17-
pip install -U capstone
18-
manage-tools install unicorn
10+
git submodule update --init --recursive
11+
popd
1912

2013
mkdir bin
2114
cat >> bin/pwndbg <<EOF

pwndbg/install-root-archlinux

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash -ex
2+
3+
# install system wide, s.t. pwndbg works also with system qemu
4+
pacman -Syu --noconfirm python-psutil python2-psutil \
5+
capstone python-capstone python2-capstone\
6+
unicorn python-unicorn python2-unicorn

pwndbg/install-root-debian

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
#!/bin/bash -ex
22

3-
apt-get install -y libc6-dbg
3+
sudo apt-get -y install python-dev python3-dev python-pip python3-pip \
4+
libglib2.0-dev libc6-dbg
5+
6+
if uname -m | grep x86_64 > /dev/null; then
7+
sudo apt-get install libc6-dbg:i386 || true
8+
fi

0 commit comments

Comments
 (0)