diff options
| author | van Hauser <vh@thc.org> | 2019-12-24 20:56:10 +0100 |
|---|---|---|
| committer | van Hauser <vh@thc.org> | 2019-12-24 20:56:10 +0100 |
| commit | 67b6298895e8db0cc91c3bbd0bc29c48f8572c2e (patch) | |
| tree | d3a398366b212ddfdac35b332c844c14dd3ba57a /experimental/socket_fuzzing/Makefile | |
| parent | 3122790295489dee77ffc9993561807fe09be3b8 (diff) | |
| download | afl++-67b6298895e8db0cc91c3bbd0bc29c48f8572c2e.tar.gz | |
qemu ld_preload support and added socket_fuzzing ld_preload library
Diffstat (limited to 'experimental/socket_fuzzing/Makefile')
| -rw-r--r-- | experimental/socket_fuzzing/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/experimental/socket_fuzzing/Makefile b/experimental/socket_fuzzing/Makefile new file mode 100644 index 00000000..b4ed9456 --- /dev/null +++ b/experimental/socket_fuzzing/Makefile @@ -0,0 +1,35 @@ +# +# american fuzzy lop++ - socket_fuzz +# ---------------------------------- +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# + +.PHONY: all install clean + +PREFIX ?= /usr/local +BIN_PATH = $(PREFIX)/bin +HELPER_PATH = $(PREFIX)/lib/afl + +CFLAGS = -fPIC -Wall -Wextra +LDFLAGS = -shared -ldl + +all: socketfuzz32.so socketfuzz64.so + +socketfuzz32.so: socketfuzz.c + -$(CC) -m32 $(CFLAGS) $^ $(LDFLAGS) -o $@ || echo "socketfuzz32 build failure (that's fine)" + +socketfuzz64.so: socketfuzz.c + -$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ + +install: socketfuzz32.so socketfuzz64.so + install -d -m 755 $(DESTDIR)$(HELPER_PATH)/ + if [ -f socketfuzz32.so ]; then set -e; install -m 755 socketfuzz32.so $(DESTDIR)$(HELPER_PATH)/; fi + install -m 755 socketfuzz64.so $(DESTDIR)$(HELPER_PATH)/ + +clean: + rm -f socketfuzz32.so socketfuzz64.so |
