diff options
author | van Hauser <vh@thc.org> | 2019-07-20 13:15:41 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2019-07-20 13:15:41 +0200 |
commit | 1d1d0d9b6fac47ca460f9dc03d189aefa11bfe68 (patch) | |
tree | badc842fa77df34a8243b119c74435a35d7758ae | |
parent | 47525f0dd624df8a2b412dfb75558a06c01f1f36 (diff) | |
download | afl++-1d1d0d9b6fac47ca460f9dc03d189aefa11bfe68.tar.gz |
warn on calling the target binary without an explicit path
-rw-r--r-- | afl-fuzz.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/afl-fuzz.c b/afl-fuzz.c index e917ed9c..53840f9a 100644 --- a/afl-fuzz.c +++ b/afl-fuzz.c @@ -12261,6 +12261,8 @@ int main(int argc, char** argv) { if (qemu_mode) FATAL("-Q and -n are mutually exclusive"); } + + if (index(argv[optind], '/') == NULL) WARNF(cLRD "Target binary called without a prefixed path, make sure you are fuzzing the right binary: " cRST "%s", argv[optind]); OKF("afl++ is maintained by Marc \"van Hauser\" Heuse, Heiko \"hexcoder\" Eissfeldt and Andrea Fioraldi"); OKF("afl++ is open source, get it at https://github.com/vanhauser-thc/AFLplusplus"); |