{"id":19167359,"url":"https://github.com/megamansec/aflplusplus-parallel-gen","last_synced_at":"2026-03-04T21:02:23.350Z","repository":{"id":216772401,"uuid":"742295169","full_name":"MegaManSec/AFLplusplus-Parallel-Gen","owner":"MegaManSec","description":"Generate and execute fuzzing campaign commands for AFL++ based on the recommended multi-core secondary fuzzer options.","archived":false,"fork":false,"pushed_at":"2024-01-12T06:55:20.000Z","size":17,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T17:11:38.695Z","etag":null,"topics":["aflplusplus","fuzzing"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MegaManSec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T06:49:24.000Z","updated_at":"2025-01-07T15:47:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"ae317218-98a8-463d-bddb-ed465b988839","html_url":"https://github.com/MegaManSec/AFLplusplus-Parallel-Gen","commit_stats":null,"previous_names":["megamansec/aflplusplus-parallel-gen"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MegaManSec/AFLplusplus-Parallel-Gen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaManSec%2FAFLplusplus-Parallel-Gen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaManSec%2FAFLplusplus-Parallel-Gen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaManSec%2FAFLplusplus-Parallel-Gen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaManSec%2FAFLplusplus-Parallel-Gen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MegaManSec","download_url":"https://codeload.github.com/MegaManSec/AFLplusplus-Parallel-Gen/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MegaManSec%2FAFLplusplus-Parallel-Gen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30092870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T20:42:30.420Z","status":"ssl_error","status_checked_at":"2026-03-04T20:42:30.057Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aflplusplus","fuzzing"],"created_at":"2024-11-09T09:36:58.474Z","updated_at":"2026-03-04T21:02:23.329Z","avatar_url":"https://github.com/MegaManSec.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AFLplusplus-Parallel-Gen\n\nNo idea what this is? Read [this post about what this is for](https://joshua.hu/aflplusplus-generate-fuzzing-campaign-commands-options-secondary-fuzzers).\nThe `generate.py` script generates commands necessary to run AFL++ using the multi-core options recommended in [the AFL++ documentation](https://aflplus.plus/docs/fuzzing_in_depth/#c-using-multiple-cores) which is based on probabilities / percentages of each fuzzer using each option. The probabilities are as follows:\n\n1. Use AFL_DISABLE_TRIM=1 to 65% of fuzzers,\n2. Use AFL_KEEP_TIMEOUTS=1 to 50% of fuzzers,\n3. Use AFL_EXPAND_HAVOC_NOW=1 for 40% of fuzzers,\n4. Use -L 0 for 10% of fuzzers,\n5. Use -Z for 20% of fuzzers,\n6. Use -P explore for 40% of fuzzers,\n7. Use -P exploit for 20% of fuzzers,\n8. Use -a binary for 30% of fuzzers,\n9. Use -a ascii for 30% of fuzzers,\n10. Use a different -p \"fast\", \"explore\", \"coe\", \"lin\", \"quad\", \"exploit\", \"rare\" for each fuzzer,\n11. Use a fuzzer built with sanitizers for one fuzzer,\n12. Use CMLOG fuzzers for 30% of all fuzzers,\n13. Of the CMPLOG fuzzers, 70% use -l 2, 10% -l 3, and 20% -l 2AT.\nUsage is: `./generate.py -n N --fuzz-out \u003cdir\u003e --corpus \u003cdir\u003e --fuzz-loc \u003cloc\u003e --san-fuzz-loc \u003cloc\u003e --cmp-fuzz-loc \u003cloc\u003e` where `N` is the number of cores you are using, `fuzz_out` is the fuzzing output, `corpus` is the directory with the corpuses, `fuzz-loc` is the location of the binary for fuzzing, `san-fuzz-loc` is the location of the binary which is built with sanitizers, and `cmp-fuzz-loc` is the location of the binary which is built with cmplog. If you're not using sanitizers or cmplog, just set these values t the same as `fuzz-loc`.\n\n---\n\nThe `run.sh` script generates commands which can be run to start all of the fuzzers in `screen`:\n\n```bash\n$ python3 generate.py -n 32 --fuzz-out \"/dev/shm/fuzz\" --corpus \"/dev/shm/corpus\" --fuzz-loc ~/fuzz.bin --san-fuzz-loc ~/fuzz.san.bin --cmp-fuzz-loc ~/fuzz.cmplog.bin  | ./run.sh\n\nscreen -dmS screen_main bash -c AFL_FINAL_SYNC=1 AFL_AUTORESUME=1 AFL_DISABLE_TRIM=1 AFL_KEEP_TIMEOUTS=1 afl-fuzz -a binary -p lin -i /dev/shm/corpus -o /dev/shm/fuzz -M main /Users/opera_user/fuzz.bin; exec bash\nscreen -dmS screen_main1 bash -c AFL_AUTORESUME=1 afl-fuzz -P explore -P exploit -a binary -a binary -p fast -i /dev/shm/corpus -o /dev/shm/fuzz -S main1 -l 2 /Users/opera_user/fuzz.cmplog.bin; exec bash\nscreen -dmS screen_main2 bash -c AFL_AUTORESUME=1 AFL_DISABLE_TRIM=1 afl-fuzz -P explore -a binary -a binary -p explore -i /dev/shm/corpus -o /dev/shm/fuzz -S main2 -l 2 /Users/opera_user/fuzz.cmplog.bin; exec bash\n.....\n```\n\nYou can therefore just run\n```bash\n$ python3 generate.py -n 32 --fuzz-out \"/dev/shm/fuzz\" --corpus \"/dev/shm/corpus\" --fuzz-loc ~/fuzz.bin --san-fuzz-loc ~/fuzz.san.bin --cmp-fuzz-loc ~/fuzz.cmplog.bin  | ./run.sh | bash\n```\nto execute everything.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegamansec%2Faflplusplus-parallel-gen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmegamansec%2Faflplusplus-parallel-gen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmegamansec%2Faflplusplus-parallel-gen/lists"}