semi-working bindead

This commit is contained in:
Yan 2015-05-14 12:49:06 -07:00
parent dcb2713331
commit 78b9032326
3 changed files with 28 additions and 0 deletions

View file

@ -9,6 +9,7 @@ Installers for the following tools are included:
|----------|------|-------------|
| binary | [afl](http://lcamtuf.coredump.cx/afl/) | State-of-the-art fuzzer. |
| binary | [barf](https://github.com/programa-stic/barf-project) | Binary Analysis and Reverse-engineering Framework. |
| binary | [bindead](https://bitbucket.org/mihaila/bindead/wiki/Home) | A static analysis tool for binaries. |
| binary | [checksec](https://github.com/slimm609/checksec.sh) | Check binary hardening settings. |
| binary | [crosstool-ng](http://crosstool-ng.org/) | Cross-compilers and cross-architecture tools. |
| binary | [gdb](http://www.gnu.org/software/gdb/) | Up-to-date gdb with python2 bindings. |

24
bindead/install Executable file
View file

@ -0,0 +1,24 @@
#!/bin/bash -e
INST_DIR="$PWD"
[ -e bindead ] || git clone https://bitbucket.org/mihaila/bindead.git
cd bindead
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre ./build.sh
cd ..
[ -e p9 ] || git clone https://bitbucket.org/mihaila/p9.git
cd p9
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre ./build.sh
cd ..
mkdir -p bin
cat <<END > bin/bindead
#!/bin/bash
JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/jre java -jar $INST_DIR/bindead/bindead.jar "\$@"
END
cat <<END > bin/p9
#!/bin/bash
$INST_DIR/p9/p9/bin/p9 --jdkhome /usr/lib/jvm/java-7-openjdk-amd64/jre "\$@"
END
chmod 755 bin/*

3
bindead/install-root Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
apt-get -y install maven libprotobuf-dev