nccgroup / TriforceAFL

AFL/QEMU fuzzing with full-system emulation.
625 stars 136 forks source link

afl-qemu-system-trace not found. #9

Open ethicalhackingplayground opened 5 years ago

ethicalhackingplayground commented 5 years ago

Hi, I keep getting this error when I run ./runFuzz -M M0

This is the output: grep: kern/kallsyms: No such file or directory grep: kern/kallsyms: No such file or directory make: 'inputs' is up to date. make: 'fuzzRoot.cpio.gz' is up to date. afl-fuzz 2.06b by lcamtuf@google.com [+] You have 3 CPU cores and 1 runnable tasks (utilization: 33%). [+] Try parallel jobs - see /usr/local/share/doc/afl/parallel_fuzzing.txt. [] Checking core_pattern... [] Setting up output directories... [] Scanning 'inputs'... [+] No auto-generated dictionary tokens to reuse. [] Creating hard links for all input files... [*] Validating target binary...

[-] PROGRAM ABORT : Program '../TriforceAFL/afl-qemu-system-trace' not found or not executable Location : check_binary(), afl-fuzz.c:6537

I tried downloading TriforceAFL from git hub and did the following and got the following error. cd TriforceAFL cd qemu_mode ./build_qemu_support.sh

Install prefix /usr/local BIOS directory /usr/local/share/qemu binary directory /usr/local/bin library directory /usr/local/lib module directory /usr/local/lib/qemu libexec directory /usr/local/libexec include directory /usr/local/include config directory /usr/local/etc local state directory /usr/local/var Manual directory /usr/local/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path /root/TriforceAFL/qemu_mode/qemu C compiler cc Host C compiler cc C++ compiler c++ Objective-C compiler cc ARFLAGS rv CFLAGS -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -pthread -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -g -O3 QEMU_CFLAGS -I$(SRC_PATH)/pixman/pixman -I$(BUILD_DIR)/pixman/pixman -I$(SRC_PATH)/dtc/libfdt -fPIE -DPIE -m32 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -Wendif-labels -Wmissing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong LDFLAGS -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m32 -g make make install install python python -B smbd /usr/sbin/smbd module support no host CPU i386 host big endian no target list x86_64-linux-user x86_64-softmmu arm-softmmu aarch64-softmmu tcg debug enabled no gprof enabled no sparse enabled no strip binaries yes profiler no static build no pixman internal SDL support no GTK support no VTE support no curses support no curl support no mingw32 support no Audio drivers oss Block whitelist (rw) Block whitelist (ro) VirtFS support no VNC support no xen support no brlapi support no bluez support no Documentation no GUEST_BASE yes PIE yes vde support no netmap support no Linux AIO support no ATTR/XATTR support yes Install blobs yes KVM support yes RDMA support no TCG interpreter no fdt support yes preadv support yes fdatasync yes madvise yes posix_madvise yes sigev_thread_id yes uuid support yes libcap-ng support no vhost-net support yes vhost-scsi support yes Trace backends nop spice support no rbd support no xfsctl support no nss used no libusb no usb net redir no OpenGL support yes libiscsi support no libnfs support no build guest agent yes QGA VSS support no seccomp support no coroutine backend ucontext coroutine pool yes GlusterFS support no Archipelago support no gcov gcov gcov enabled no TPM support yes libssh2 support no TPM passthrough yes QOM debugging yes vhdx yes Quorum no lzo support no snappy support no bzip2 support no NUMA host support no GEN config-host.h make all-recursive Making all in pixman make[3]: Nothing to be done for 'all'. Making all in demos make[3]: Nothing to be done for 'all'. Making all in test make[3]: Nothing to be done for 'all'. CHK version_gen.h GEN trace/generated-tracers.h GEN trace/generated-tcg-tracers.h GEN trace/generated-helpers-wrappers.h GEN trace/generated-helpers.h LINK qemu-ga /usr/bin/ld: qga/commands-posix.o: in function dev_major_minor': /root/TriforceAFL/qemu_mode/qemu/qga/commands-posix.c:633: undefined reference tomajor' /usr/bin/ld: /root/TriforceAFL/qemu_mode/qemu/qga/commands-posix.c:634: undefined reference to `minor' collect2: error: ld returned 1 exit status Makefile:288: recipe for target 'qemu-ga' failed make: *** [qemu-ga] Error 1 cp: cannot stat 'x86_64-linux-user/qemu-x86_64': No such file or directory cp: cannot stat 'x86_64-softmmu/qemu-system-x86_64': No such file or directory cp: cannot stat 'x86_64-softmmu/qemu-system-x86_64': No such file or directory cp: cannot stat 'arm-softmmu/qemu-system-arm': No such file or directory cp: cannot stat 'aarch64-softmmu/qemu-system-aarch64': No such file or directory

Please help, let me know if you want more information such as logs etc.)

ExiaCaster commented 4 years ago

Hi, Have you resolve the problem?

jhertz commented 3 years ago

Hi. Please move any questions/comments to https://github.com/timnewsham/TriforceAFL

I'm not sure why your system isn't working, have you tried using the docker images? They may be the easiest solution