2017-04-05 10:51:51 +00:00
|
|
|
#!/bin/bash -ex
|
2017-02-07 16:41:27 +00:00
|
|
|
|
|
|
|
git clone --depth 1 https://github.com/serpilliere/elfesteem.git
|
|
|
|
git clone --depth 1 https://github.com/cea-sec/miasm.git
|
|
|
|
|
2017-04-05 14:23:50 +00:00
|
|
|
ctf-tools-pip install -U enum34
|
2017-04-05 13:35:44 +00:00
|
|
|
if which llvm-config-3.9 >/dev/null 2>&1 ; then
|
2017-04-05 12:09:59 +00:00
|
|
|
export LLVM_CONFIG=$(which llvm-config-3.9)
|
2017-04-05 14:23:50 +00:00
|
|
|
ctf-tools-pip install "llvmlite==0.16"
|
2017-04-05 13:35:44 +00:00
|
|
|
elif which llvm-config-3.8 >/dev/null 2>&1 ; then
|
2017-04-05 12:09:59 +00:00
|
|
|
export LLVM_CONFIG=$(which llvm-config-3.8)
|
2017-04-05 14:23:50 +00:00
|
|
|
ctf-tools-pip install "llvmlite==0.15"
|
2017-04-05 13:35:44 +00:00
|
|
|
elif which llvm-config >/dev/null 2>&1; then
|
|
|
|
# let's hope for the best
|
2017-04-05 14:23:50 +00:00
|
|
|
ctf-tools-pip install llvmlite
|
2017-04-05 13:35:44 +00:00
|
|
|
else
|
|
|
|
echo "Skipping llvmlite install!"
|
2017-04-05 12:09:59 +00:00
|
|
|
fi
|
|
|
|
|
2017-02-07 16:41:27 +00:00
|
|
|
ctf-tools-pip install -e elfesteem
|
|
|
|
ctf-tools-pip install -e miasm
|