lcatro / Fuzzing-ImageMagick

OpenSource My ImageMagick Fuzzer ..
295 stars 95 forks source link

求助报错 #5

Open Ba1h0ng opened 5 years ago

Ba1h0ng commented 5 years ago

感觉很奇怪,按照教程做的,也有二进制文件,就是一直报错 使用的命令 afl-fuzz -i ../../../afl-2.52b/testcases/images/png/ -o fuzzing_output -t 300000 -m 200 ./magick convert @@ /dev/null

下是报错的显示与图片

Hmm, looks like the target binary terminated before we could complete a handshake with the injected code. There are two probable explanations:

- The current memory limit (200 MB) is too restrictive, causing an OOM
  fault in the dynamic linker. This can be fixed with the -m option. A
  simple way to confirm the diagnosis may be:

  ( ulimit -Sv $[199 << 10]; /path/to/fuzzed_app )

  Tip: you can use http://jwilk.net/software/recidivm to quickly
  estimate the required amount of virtual memory for the binary.

- Less likely, there is a horrible bug in the fuzzer. If other options
  fail, poke <lcamtuf@coredump.cx> for troubleshooting tips.

[-] PROGRAM ABORT : Fork server handshake failed Location : init_forkserver(), afl-fuzz.c:2253

vul-2019-07-18-14-57-18

PeiXie commented 3 years ago

我也遇到了相同问题,通过测试.libs文件夹下的lt-magick程序可以解决这个问题。 (如果.libs文件夹里没有这个程序,可以使用magick脚本执行一下identify或者convert命令)

liuliqaz commented 3 years ago

尝试执行 ldconfig /usr/local/lib