summary refs log tree commit diff
path: root/afl-fuzz-dyninst.sh
diff options
context:
space:
mode:
Diffstat (limited to 'afl-fuzz-dyninst.sh')
-rwxr-xr-xafl-fuzz-dyninst.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/afl-fuzz-dyninst.sh b/afl-fuzz-dyninst.sh
index bb10a95..b5370cb 100755
--- a/afl-fuzz-dyninst.sh
+++ b/afl-fuzz-dyninst.sh
@@ -1,5 +1,8 @@
 #!/bin/bash
 test -z "$1" -o "$1" = "-h" && { echo Syntax: $0 afl-fuzz-options ; echo sets the afl-dyninst environment variables ; exit 1 ; }
+sysctl -w kernel.core_pattern="core" > /dev/null
+sysctl -w kernel.randomize_va_space=0 > /dev/null
+echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor > /dev/null
 export AFL_SKIP_BIN_CHECK=1
 export DYNINSTAPI_RT_LIB=/usr/local/lib/libdyninstAPI_RT.so
 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.