diff options
author | van Hauser <vh@thc.org> | 2021-03-01 10:12:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 10:12:04 +0100 |
commit | bd0a23de73011a390714b9f3836a46443054fdd5 (patch) | |
tree | 9b2335f357e84e18e4c8259581360923921ca8b2 /afl-system-config | |
parent | 5cf0655071a83b1c87490be8399fe2365f087223 (diff) | |
parent | 4619a1395b9a414e5e11148d79fde3a7fa348e87 (diff) | |
download | afl++-3.10c.tar.gz |
Merge pull request #767 from AFLplusplus/dev 3.10c
Final push for release
Diffstat (limited to 'afl-system-config')
-rwxr-xr-x | afl-system-config | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/afl-system-config b/afl-system-config index d5e5ceae..9905ac81 100755 --- a/afl-system-config +++ b/afl-system-config @@ -49,6 +49,12 @@ if [ "$PLATFORM" = "FreeBSD" ] ; then sysctl kern.elf64.aslr.enable=0 } > /dev/null echo Settings applied. + cat <<EOF +In order to suppress core file generation during fuzzing it is recommended to set +me:\\ + :coredumpsize=0: +in the ~/.login_conf file for the user used for fuzzing. +EOF echo It is recommended to boot the kernel with lots of security off - if you are running a machine that is in a secured network - so set this: echo ' sysctl hw.ibrs_disable=1' echo 'Setting kern.pmap.pg_ps_enabled=0 into /boot/loader.conf might be helpful too.' @@ -60,8 +66,14 @@ if [ "$PLATFORM" = "OpenBSD" ] ; then DONE=1 fi if [ "$PLATFORM" = "DragonFly" ] ; then - echo - echo 'System security features cannot be disabled on DragonFly.' + #/sbin/sysctl kern.corefile=/dev/null + #echo Settings applied. + cat <<EOF +In order to suppress core file generation during fuzzing it is recommended to set +me:\\ + :coredumpsize=0: +in the ~/.login_conf file for the user used for fuzzing. +EOF DONE=1 fi if [ "$PLATFORM" = "NetBSD" ] ; then @@ -88,7 +100,7 @@ fi if [ "$PLATFORM" = "Haiku" ] ; then SETTINGS=~/config/settings/system/debug_server/settings [ -r ${SETTINGS} ] && grep -qE "default_action\s+kill" ${SETTINGS} && { echo "Nothing to do"; } || { \ - echo We change the debug_server default_action from user to silenty kill; \ + echo We change the debug_server default_action from user to silently kill; \ [ ! -r ${SETTINGS} ] && echo "default_action kill" >${SETTINGS} || { mv ${SETTINGS} s.tmp; sed -e "s/default_action\s\s*user/default_action kill/" s.tmp > ${SETTINGS}; rm s.tmp; }; \ echo Settings applied.; \ } |