mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-10 08:24:12 +00:00
improved pwndbg install
This commit is contained in:
parent
d128a5276b
commit
f79f95d096
3 changed files with 14 additions and 10 deletions
|
@ -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
6
pwndbg/install-root-archlinux
Executable 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
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue