Exploit databaseDownload repository ZIP
GH-27cb30eb666ed81d79b922b6a7972f89
5hadowblad3/beacon_artifact
Sources for CVE-2017-7578
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files5
5hadowblad3/beacon_artifactRevision cb4f042c96f3
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/build.sh
Shell · 1,201 bytes#!/bin/bash
set -e
set -x
# if ${BEACON} not exist
if [[ -z "$BEACON" ]]; then
echo "Error: BEACON is not set"
exit 1
elif [[ ! -d "$BEACON" ]]; then
echo "Error: BEACON:$BEACON directory does not exist"
exit 1
fi
pushd $BEACON
# Building SVF
(
git clone https://github.com/SVF-tools/SVF.git
pushd SVF
git reset --hard 3170e83b03eefc15e5a3707e5c52dc726ffcd60a
sed -i 's/LLVMRELEASE=\/home\/ysui\/llvm-4.0.0\/llvm-4.0.0.obj/LLVMRELEASE=\/usr\/llvm/' build.sh
./build.sh
popd
)
# Building precondInfer
(
pushd precondInfer
if [ -d build ]; then
rm -r build
fi
mkdir build
pushd build
cmake \
-DENABLE_KLEE_ASSERTS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_CONFIG_BINARY=/usr/bin/llvm-config \
-DSVF_ROOT_DIR=${BEACON}/SVF \
-DSVF_LIB_DIR=${BEACON}/SVF/Release-build/lib \
..
make -j
popd
popd
)
# Building Ins
(
pushd Ins
if [ -d build ]; then
rm -r build
fi
mkdir build
pushd build
CXXFLAGS="-fno-rtti" cmake \
-DLLVM_DIR=/usr/lib/cmake/llvm/ \
-DCMAKE_BUILD_TYPE=Release \
..
make -j
popd
popd
)
popd