I'm trying to complete the heartbleed challenge and the limit_memory.sh script doesn't work as the ASNWERS.md file suggests.
First of all, the script is located in the ~/AFLplusplus/utils/asan_cgroups/ directory, and not ~/AFLplusplus/examples/asan_cgroups/, like the answers file suggests.
Second of all, when you do try to run the script, then it fails:
sudo ~/AFLplusplus/utils/asan_cgroups/limit_memory.sh -u fuzzer afl-fuzz -i in -o out ./handshake
cgcreate: libcgroup initialization failed: Cgroup is not mounted
I also tried running it in the official AFL++ docker image, but ran into the same problem.
I don't know too much about cgroups, so I'm not sure what's going wrong. I'm running AFL++ from a privileged docker container, from inside a Virtualbox VM, if it makes any difference.
I'm trying to complete the
heartbleedchallenge and thelimit_memory.shscript doesn't work as the ASNWERS.md file suggests.First of all, the script is located in the
~/AFLplusplus/utils/asan_cgroups/directory, and not~/AFLplusplus/examples/asan_cgroups/, like the answers file suggests.Second of all, when you do try to run the script, then it fails:
I also tried running it in the official AFL++ docker image, but ran into the same problem.
I don't know too much about cgroups, so I'm not sure what's going wrong. I'm running AFL++ from a privileged docker container, from inside a Virtualbox VM, if it makes any difference.