Sha256: 0956c3f79659bcd7a7bea74a4ede1d400bbacccc16f7228920aa608153682f67

Contents?: true

Size: 1.44 KB

Versions: 813

Compression:

Stored size: 1.44 KB

Contents

#!/bin/bash --login
source /etc/profile.d/globals.sh

aflplusplus_repo='/opt/AFLplusplus'

# Build from source in order to support Qemu Instrumentation:
# Found in https://github.com/mirrorer/afl/README.md => "4) Instrumenting binary-only apps"
# No need to apt install qemu as it's included in:
# /opt/afl-dev/qemu_mode/qemu-2.10.0.tar.xz
$screen_cmd "wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -"
grok_error

$screen_cmd "${apt} update"
grok_error

$screen_cmd "${apt} install -y clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python-clang ninja-build libtool libtool-bin automake bison libglib2.0-dev ${assess_update_errors}"
grok_error

$screen_cmd "cd /opt && git clone https://github.com/AFLplusplus/AFLplusplus && cd ${aflplusplus_repo} && make distrib ${assess_update_errors}"
grok_error

#$screen_cmd "cd /opt && git clone https://github.com/AFLplusplus/AFLplusplus && cd ${aflplusplus_repo} && make && cd ${aflplusplus_repo}/qemu_mode && ./build_qemu_support.sh && cd ${aflplusplus_repo}/unicorn_mode && ./build_unicorn_support.sh && cd ${aflplusplus_repo}/llvm_mode && LLVM_CONFIG=llvm-config-11 make ${assess_update_errors}"
#grok_error


ls -l /opt/AFLplusplus | grep '^-rwx' | awk '{print $9}' | while read afl_bin; do 
  sudo ln -sf /opt/afl-dev/$afl_bin /usr/local/bin/
done

Version data entries

813 entries across 813 versions & 1 rubygems

Version Path
pwn-0.5.236 packer/provisioners/afl.sh
pwn-0.5.235 packer/provisioners/afl.sh
pwn-0.5.234 packer/provisioners/afl.sh
pwn-0.5.233 packer/provisioners/afl.sh
pwn-0.5.232 packer/provisioners/afl.sh
pwn-0.5.231 packer/provisioners/afl.sh
pwn-0.5.230 packer/provisioners/afl.sh
pwn-0.5.229 packer/provisioners/afl.sh
pwn-0.5.228 packer/provisioners/afl.sh
pwn-0.5.227 packer/provisioners/afl.sh
pwn-0.5.226 packer/provisioners/afl.sh
pwn-0.5.225 packer/provisioners/afl.sh
pwn-0.5.224 packer/provisioners/afl.sh
pwn-0.5.223 packer/provisioners/afl.sh
pwn-0.5.222 packer/provisioners/afl.sh
pwn-0.5.221 packer/provisioners/afl.sh
pwn-0.5.220 packer/provisioners/afl.sh
pwn-0.5.219 packer/provisioners/afl.sh
pwn-0.5.217 packer/provisioners/afl.sh
pwn-0.5.216 packer/provisioners/afl.sh