about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xtest/test-frida-mode.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-frida-mode.sh b/test/test-frida-mode.sh
index 92b44071..501ef70a 100755
--- a/test/test-frida-mode.sh
+++ b/test/test-frida-mode.sh
@@ -61,7 +61,7 @@ test -e ../afl-frida-trace.so && {
           #if file test-instr | grep -q "32-bit"; then
           #else
           #fi
-          export AFL_FRIDA_PERSISTENT_ADDR=0x`nm test-instr | grep "T main" | awk '{print $1}'`
+          export AFL_FRIDA_PERSISTENT_ADDR=0x`nm test-instr | grep -Ei "T _main|T main" | awk '{print $1}'`
           $ECHO "Info: AFL_FRIDA_PERSISTENT_ADDR=$AFL_FRIDA_PERSISTENT_ADDR <= $(nm test-instr | grep "T main" | awk '{print $1}')"
           env|grep AFL_|sort
           file test-instr