about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2023-05-21 14:49:24 +0200
committervanhauser-thc <vh@thc.org>2023-05-21 14:49:24 +0200
commit1416fea1604a19408554678d7c9fb35b67da302b (patch)
tree827af890dee7336fc9ef95ee43d0bf0ee5fd5a55
parentd4085314c1c1d4e8bbe4159216f8cb83e0804ea7 (diff)
downloadafl++-1416fea1604a19408554678d7c9fb35b67da302b.tar.gz
cleaner tritondse
-rw-r--r--custom_mutators/aflpp_tritondse/README.md6
-rw-r--r--custom_mutators/aflpp_tritondse/aflpp_tritondse.py4
2 files changed, 8 insertions, 2 deletions
diff --git a/custom_mutators/aflpp_tritondse/README.md b/custom_mutators/aflpp_tritondse/README.md
index 608c2624..033655d2 100644
--- a/custom_mutators/aflpp_tritondse/README.md
+++ b/custom_mutators/aflpp_tritondse/README.md
@@ -15,6 +15,8 @@ AFL_DISABLE_TRIM=1 AFL_CUSTOM_MUTATOR_ONLY=1 AFL_SYNC_TIME=1 AFL_PYTHON_MODULE=a
 
 Note that this custom mutator works differently, new finds are synced
 after 10-60 seconds to the fuzzing instance. This is necessary because only
-C/C++ mutators have access to the internal AFL++ state.
+C/C++ custom mutators have access to the internal AFL++ state.
 
-Hence the symqemu customer mutator is more effective.
+Note that you should run first with `AFL_DEBUG` for 5-10 minutes and see if
+all important libraries and syscalls are hooked (look at `WARNING` and `CRITICAL`
+output during the run, best use with `AFL_NO_UI=1`)
diff --git a/custom_mutators/aflpp_tritondse/aflpp_tritondse.py b/custom_mutators/aflpp_tritondse/aflpp_tritondse.py
index cef28f34..58b506b6 100644
--- a/custom_mutators/aflpp_tritondse/aflpp_tritondse.py
+++ b/custom_mutators/aflpp_tritondse/aflpp_tritondse.py
@@ -120,6 +120,10 @@ def init(seed):
         is_debug = True
     except KeyError:
         pass
+    if is_debug:
+        logging.basicConfig(level=logging.WARNING)
+    else:
+        logging.basicConfig(level=logging.CRITICAL)
     try:
         foo = os.environ['AFL_CUSTOM_INFO_OUT']
         out_path = foo + '/../tritondse/queue'