about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile2
-rwxr-xr-xafl-fuzz-dyninst.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 9feaeaf..76634d2 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,7 @@ FROM kalilinux/kali-rolling AS afl-dyninst
 MAINTAINER vh@thc.org
 
 ARG DEBIAN_FRONTEND=noninteractive
-RUN apt-get update && apt-get upgrade && apt-get -y install \
+RUN apt-get update && apt-get -y upgrade && apt-get -y install \
         build-essential \
         gcc \
         g++ \
diff --git a/afl-fuzz-dyninst.sh b/afl-fuzz-dyninst.sh
index 710c558..aef3244 100755
--- a/afl-fuzz-dyninst.sh
+++ b/afl-fuzz-dyninst.sh
@@ -5,7 +5,8 @@ test -z "$1" -o "$1" = "-h" && { echo Syntax: $0 afl-fuzz-options ; echo sets th
 #
 export AFL_SKIP_BIN_CHECK=1
 export DYNINSTAPI_RT_LIB=/usr/local/lib/libdyninstAPI_RT.so
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:.
+echo " $*" | grep -q " -m" && { echo "Warning: no -m memory option specified!" ; sleep 1 ; }
 #export AFL_EXIT_WHEN_DONE=1
 #export AFL_TMPDIR=/run/$$
 #export AFL_PRELOAD=./desock.so:./libdislocator/libdislocator.so