Fuzzing-ImageMagick icon indicating copy to clipboard operation
Fuzzing-ImageMagick copied to clipboard

求助报错

Open Ba1h0ng opened this issue 5 years ago • 2 comments

感觉很奇怪,按照教程做的,也有二进制文件,就是一直报错 使用的命令 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 <[email protected]> for troubleshooting tips.

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

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

Ba1h0ng avatar Jul 18 '19 07:07 Ba1h0ng

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

PeiXie avatar Dec 18 '20 08:12 PeiXie

尝试执行 ldconfig /usr/local/lib

liuliqaz avatar Mar 12 '21 12:03 liuliqaz