mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 09:11:34 +00:00
disable aslr on apple
This commit is contained in:
parent
04219f9857
commit
523ce154c3
3
TODO.md
3
TODO.md
@ -9,9 +9,6 @@
|
||||
- afl-fuzz multicore wrapper script
|
||||
- when trimming then perform crash detection
|
||||
- either -L0 and/or -p mmopt results in zero new coverage
|
||||
- DYLD_NO_PIE=1
|
||||
- sudo nvram boot-args="no_aslr=1"
|
||||
|
||||
|
||||
|
||||
## Should
|
||||
|
@ -38,6 +38,7 @@ fi
|
||||
|
||||
echo
|
||||
PLATFORM=`uname -s`
|
||||
ARCH=`uname -m`
|
||||
|
||||
# check that we're on Mac
|
||||
if [[ "$PLATFORM" = "Darwin" ]] ; then
|
||||
@ -87,6 +88,13 @@ if [[ "$PLATFORM" = "Darwin" ]] ; then
|
||||
</plist>
|
||||
EOF
|
||||
|
||||
if [[ "$ARCH" = "x86_64" ]]; then
|
||||
echo "Disabling ASLR system wide"
|
||||
nvram boot-args="no_aslr=1"
|
||||
else
|
||||
echo NOTICE: on ARM64 we do not know currently how to disable system wide ASLR, please report if you know how.
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "Reboot and enjoy your fuzzing"
|
||||
exit 0
|
||||
|
@ -1812,6 +1812,10 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
check_cpu_governor(afl);
|
||||
#endif
|
||||
|
||||
#ifdef __APPLE__
|
||||
setenv("DYLD_NO_PIE", "1", 0);
|
||||
#endif
|
||||
|
||||
if (getenv("LD_PRELOAD")) {
|
||||
|
||||
WARNF(
|
||||
|
Loading…
x
Reference in New Issue
Block a user