mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-04 02:09:11 +00:00
Updates to Installs, should fix a few tools especially on 14.04
This commit is contained in:
parent
f211f94e0b
commit
ec0453039d
14 changed files with 59 additions and 33 deletions
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash -ex
|
||||
mkdir bin
|
||||
wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool
|
||||
wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.2.0.jar
|
||||
mv apktool_2.2.0.jar bin/apktool.jar
|
||||
wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.2.2.jar
|
||||
mv apktool_2.2.2.jar bin/apktool.jar
|
||||
mv apktool bin/
|
||||
chmod 755 bin/apktool
|
||||
chmod 755 bin/apktool.jar
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
mkdir bin
|
||||
wget -O dirb.tar.gz http://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz
|
||||
wget -O dirb.tar.gz https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz
|
||||
tar -xf dirb.tar.gz
|
||||
|
||||
chmod -R a+X dirb222/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -ex
|
||||
set -e -o pipefail
|
||||
|
||||
curl https://ftp.gnu.org/gnu/gdb/gdb-7.12.tar.gz | tar xz
|
||||
curl https://ftp.gnu.org/gnu/gdb/gdb-7.12.1.tar.gz | tar xz
|
||||
cd gdb-7.12
|
||||
|
||||
# move to ctftools virtual env
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
mkdir bin
|
||||
wget -O msieve.tar.gz "http://downloads.sourceforge.net/project/msieve/msieve/Msieve v1.53/msieve153_src.tar.gz"
|
||||
wget -O msieve.tar.gz "https://downloads.sourceforge.net/project/msieve/msieve/Msieve v1.53/msieve153_src.tar.gz"
|
||||
tar -xf msieve.tar.gz
|
||||
|
||||
cd msieve-*
|
||||
|
|
|
@ -1,32 +1,41 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
[ -e panda ] || git clone --depth 1 https://github.com/moyix/panda
|
||||
[ -e panda ] || git clone --recursive https://github.com/panda-re/panda
|
||||
|
||||
curl -O http://ragestorm.net/distorm/distorm3.3-package.zip
|
||||
rm -rf distorm3
|
||||
unzip distorm3.3-package.zip
|
||||
make -C distorm3/make/linux -j
|
||||
mkdir -p lib
|
||||
cp distorm3/make/linux/*.so distorm3/*.a lib
|
||||
mkdir -p include
|
||||
cp distorm3/include/*.h include
|
||||
# git includes submodules hence recursive
|
||||
|
||||
ctf-tools-pip install -U pycparser
|
||||
|
||||
sed -i -e "s|/usr/local|$PWD|" panda/qemu/build.sh
|
||||
export QEMU_CFLAGS="-I $PWD/include -L $PWD/lib"
|
||||
export QEMU_CXXFLAGS="-I $PWD/include -L $PWD/lib"
|
||||
git clone git://git.code.sf.net/p/libdwarf/code libdwarf-code
|
||||
|
||||
# move to ctftools virtual env
|
||||
source ctf-tools-venv-activate
|
||||
|
||||
pushd libdwarf-code
|
||||
./configure --enable-shared
|
||||
make -j$(nproc)
|
||||
mkdir -p ../include
|
||||
mkdir -p ../lib
|
||||
cp libdwarf/libdwarf.h ../include
|
||||
cp libdwarf/dwarf.h ../include
|
||||
cp libdwarf/libdwarf.so ../lib
|
||||
popd
|
||||
|
||||
#sed -i -e "s|/usr/local|$PWD|" panda/build.sh
|
||||
export QEMU_CFLAGS="-I $PWD/include"
|
||||
export QEMU_CXXFLAGS="-I $PWD/include"
|
||||
#export LDFLAGS="-L $PWD/lib"
|
||||
cd panda/qemu
|
||||
./build.sh
|
||||
mkdir -p panda/build
|
||||
cd panda/build
|
||||
../build.sh "$@"
|
||||
cd ../../
|
||||
|
||||
# link binaries
|
||||
mkdir -p bin
|
||||
cd bin
|
||||
ln -s ../panda/qemu/i386-softmmu/qemu-system-i386 ./panda-qemu-system-i386
|
||||
ln -s ../panda/qemu/arm-softmmu/qemu-system-arm ./panda-qemu-system-arm
|
||||
ln -s ../panda/qemu/x86_64-softmmu/qemu-system-x86_64 ./panda-qemu-system-x86_64
|
||||
ln -s ../panda/build/i386-softmmu/qemu-system-i386 ./panda-qemu-system-i386
|
||||
ln -s ../panda/build/arm-softmmu/qemu-system-arm ./panda-qemu-system-arm
|
||||
ln -s ../panda/build/x86_64-softmmu/qemu-system-x86_64 ./panda-qemu-system-x86_64
|
||||
for i in ../panda/scripts/*.py
|
||||
do
|
||||
ln -s $i ./panda-$(basename $i)
|
||||
|
|
12
panda/install-root-ubuntu
Executable file
12
panda/install-root-ubuntu
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/bash -ex
|
||||
set -eu -o pipefail
|
||||
|
||||
apt-get update
|
||||
apt-get -y build-dep qemu
|
||||
apt-get -y install software-properties-common
|
||||
add-apt-repository -y ppa:phulin/panda
|
||||
apt-get update
|
||||
apt-get -y install nasm libssl-dev libpcap-dev libelf-dev \
|
||||
libc++-dev llvm-3.3-dev clang-3.3 libprotoc-dev \
|
||||
protobuf-c-compiler protobuf-compiler libprotobuf-c0-dev pkg-config \
|
||||
libglib2.0-dev libcapstone-dev libdwarf-dev python-pycparser
|
3
panda/uninstall
Executable file
3
panda/uninstall
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
ctf-tools-pip uninstall -y pycparser || true
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
wget https://didierstevens.com/files/software/pdf-parser_V0_6_4.zip
|
||||
unzip pdf-parser_V0_6_4.zip
|
||||
wget https://didierstevens.com/files/software/pdf-parser_V0_6_7.zip
|
||||
unzip pdf-parser_V0_6_7.zip
|
||||
mkdir -p bin
|
||||
mv pdf-parser.py bin/pdf-parser
|
||||
chmod 755 bin/pdf-parser
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
git clone --depth=1 https://github.com/Gallopsled/pwntools.git
|
||||
ctf-tools-pip install --upgrade appdirs
|
||||
ctf-tools-pip install --upgrade -e pwntools
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash -ex
|
||||
set -e -o pipefail
|
||||
|
||||
curl http://download.qemu-project.org/qemu-2.8.0.tar.bz2 | tar xvj
|
||||
cd qemu-2.8.0
|
||||
curl http://download.qemu-project.org/qemu-2.8.1.tar.bz2 | tar xvj
|
||||
cd qemu-2.8.1
|
||||
|
||||
source ctf-tools-venv-activate
|
||||
./configure "--prefix=$(dirname $PWD)" "--python=$(which python)"
|
||||
|
|
|
@ -1,11 +1,12 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
curl http://jaist.dl.sourceforge.net/project/reveng/1.4.4/reveng-1.4.4.tar.gz | tar xz
|
||||
cd reveng-1.4.4
|
||||
wget https://downloads.sourceforge.net/project/reveng/1.5.1/reveng-1.5.1.tar.gz
|
||||
tar -xf reveng-1.5.1.tar.gz
|
||||
cd reveng-1.5.1
|
||||
sed -i -e "s/^#define BMP_BIT.*/#define BMP_BIT 64/" config.h
|
||||
sed -i -e "s/^#define BMP_SUB.*/#define BMP_SUB 32/" config.h
|
||||
make -j $(nproc)
|
||||
cd ..
|
||||
|
||||
mkdir -p bin
|
||||
cp reveng-1.4.4/reveng bin
|
||||
cp reveng-1.5.1/reveng bin
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
INST_DIR=$PWD
|
||||
|
||||
curl http://valgrind.org/downloads/valgrind-3.11.0.tar.bz2 | tar xj
|
||||
cd valgrind-3.11.0
|
||||
curl http://valgrind.org/downloads/valgrind-3.12.0.tar.bz2 | tar xj
|
||||
cd valgrind-3.12.0
|
||||
./autogen.sh
|
||||
./configure --prefix=$INST_DIR
|
||||
make -j $(nproc)
|
||||
|
|
|
@ -8,5 +8,5 @@ cd ..
|
|||
|
||||
mkdir bin
|
||||
cd bin
|
||||
ln -s ../xrop
|
||||
ln -s ../xrop/xrop
|
||||
cd ..
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
mkdir yafu
|
||||
mkdir bin
|
||||
cd yafu
|
||||
wget "https://downloads.sourceforge.net/project/yafu/1.34/yafu-1.34.zip?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fyafu%2F&ts=1446080941&use_mirror=skylineservers" -O yafu.zip
|
||||
wget "https://downloads.sourceforge.net/project/yafu/1.34/yafu-1.34.zip" -O yafu.zip
|
||||
unzip yafu.zip
|
||||
chmod 755 yafu
|
||||
mv yafu ../bin
|
||||
|
|
Loading…
Reference in a new issue