ctf-tools/pwntools/install
2015-05-07 19:24:30 -07:00

30 lines
636 B
Bash
Executable file

#!/bin/bash -e
# pwnutils
git clone https://github.com/Gallopsled/pwntools.git
cd pwntools
pip install -r requirements.txt
cd ..
# binutils
#curl https://ftp.gnu.org/gnu/binutils/binutils-2.25.tar.gz | tar xvz
#mkdir binutils-build
#cd binutils-build
#export AR=ar
#export AS=as
#../binutils-2.25/configure --prefix=$(dirname $PWD)/binutils-inst --enable-multilib
#make -j $(nproc)
#make install
mkdir -p bin
cd bin
for i in $(yes n | pip uninstall pwntools | grep bin)
do
mv $i $(basename $i).real
cat <<END > $(basename $i)
#!/bin/bash
PATH=/usr/bin:\$PATH $PWD/$(basename $i).real "\$@"
END
chmod 755 $(basename $i)
done
cd ..