improved pwndbg install

This commit is contained in:
Michael Rodler 2017-09-05 11:25:49 +02:00 committed by Yan
parent d128a5276b
commit f79f95d096
3 changed files with 14 additions and 10 deletions

View file

@ -1,5 +1,4 @@
#!/bin/bash -ex
set -e -o pipefail
git clone --depth 1 https://github.com/pwndbg/pwndbg
@ -7,16 +6,10 @@ source ctf-tools-venv-activate
pushd pwndbg
pip install -Ur ./requirements.txt
git submodule update --init --recursive
popd
# pwndbg brings it's own capstone/unicorn submodules
# we ignore this for now and install the deps ourselfs
#git submodule update --init --recursive
# install capstone/unicron dependencies
pip install -U capstone
manage-tools install unicorn
mkdir bin
cat >> bin/pwndbg <<EOF
#!/bin/sh

6
pwndbg/install-root-archlinux Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash -ex
# install system wide, s.t. pwndbg works also with system qemu
pacman -Syu --noconfirm python-psutil python2-psutil \
capstone python-capstone python2-capstone\
unicorn python-unicorn python2-unicorn

View file

@ -1,3 +1,8 @@
#!/bin/bash -ex
apt-get install -y libc6-dbg
sudo apt-get -y install python-dev python3-dev python-pip python3-pip \
libglib2.0-dev libc6-dbg
if uname -m | grep x86_64 > /dev/null; then
sudo apt-get install libc6-dbg:i386 || true
fi