mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-13 02:28:09 +00:00
-c - support
This commit is contained in:
@ -15,7 +15,10 @@
|
|||||||
command line tool! See custom_mutators/aflpp/standalone/
|
command line tool! See custom_mutators/aflpp/standalone/
|
||||||
- display the state of the fuzzing run in the UI :-)
|
- display the state of the fuzzing run in the UI :-)
|
||||||
- fix timeout setting if '+' is used or a session is restarted
|
- fix timeout setting if '+' is used or a session is restarted
|
||||||
- -c X option to enable base64 transformation solving
|
- -l X option to enable base64 transformation solving
|
||||||
|
- allow to disable CMPLOG with '-c -' (e.g. afl.rs enforces '-c 0' on
|
||||||
|
every instance which is counterproductive).
|
||||||
|
|
||||||
- afl-cmin/afl-cmin.bash:
|
- afl-cmin/afl-cmin.bash:
|
||||||
- fixed a bug inherited from vanilla AFL where a coverage of
|
- fixed a bug inherited from vanilla AFL where a coverage of
|
||||||
map[123] = 11 would be the same as map[1123] = 1
|
map[123] = 11 would be the same as map[1123] = 1
|
||||||
|
@ -180,7 +180,8 @@ static void usage(u8 *argv0, int more_help) {
|
|||||||
"it.\n"
|
"it.\n"
|
||||||
" if using QEMU/FRIDA or the fuzzing target is "
|
" if using QEMU/FRIDA or the fuzzing target is "
|
||||||
"compiled\n"
|
"compiled\n"
|
||||||
" for CmpLog then just use -c 0.\n"
|
" for CmpLog then use '-c 0'. To disable Cmplog use '-c "
|
||||||
|
"-'.\n"
|
||||||
" -l cmplog_opts - CmpLog configuration values (e.g. \"2ATR\"):\n"
|
" -l cmplog_opts - CmpLog configuration values (e.g. \"2ATR\"):\n"
|
||||||
" 1=small files, 2=larger files (default), 3=all "
|
" 1=small files, 2=larger files (default), 3=all "
|
||||||
"files,\n"
|
"files,\n"
|
||||||
@ -600,8 +601,23 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
case 'c': {
|
case 'c': {
|
||||||
|
|
||||||
afl->shm.cmplog_mode = 1;
|
if (strcmp(optarg, "-") == 0) {
|
||||||
afl->cmplog_binary = ck_strdup(optarg);
|
|
||||||
|
if (afl->shm.cmplog_mode) {
|
||||||
|
|
||||||
|
ACTF("Disabling cmplog again because of '-c -'.");
|
||||||
|
afl->shm.cmplog_mode = 0;
|
||||||
|
afl->cmplog_binary = NULL;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
afl->shm.cmplog_mode = 1;
|
||||||
|
afl->cmplog_binary = ck_strdup(optarg);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1510,8 +1526,7 @@ int main(int argc, char **argv_orig, char **envp) {
|
|||||||
|
|
||||||
if (!afl->use_banner) { afl->use_banner = argv[optind]; }
|
if (!afl->use_banner) { afl->use_banner = argv[optind]; }
|
||||||
|
|
||||||
if (afl->shm.cmplog_mode &&
|
if (afl->shm.cmplog_mode && strcmp("0", afl->cmplog_binary) == 0) {
|
||||||
(!strcmp("-", afl->cmplog_binary) || !strcmp("0", afl->cmplog_binary))) {
|
|
||||||
|
|
||||||
afl->cmplog_binary = strdup(argv[optind]);
|
afl->cmplog_binary = strdup(argv[optind]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user