mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-14 06:52:36 +00:00
30 lines
636 B
Bash
Executable file
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 ..
|