summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8d8f69b..2634a9a 100644
--- a/Makefile
+++ b/Makefile
@@ -97,6 +97,19 @@ servers_charset.h: servers_charset_list make_servers_charset.pl
$(PERL) make_servers_charset.pl < $< > $@
##############################################################################
+afl:
+ $(MAKE) whois \
+ CC=afl-gcc AFL_HARDEN=1 \
+ HAVE_LIBIDN=1 HAVE_ICONV=1 DEFS=-DAFL_MODE=1
+
+afl2:
+ $(MAKE) whois \
+ HAVE_LIBIDN=1 HAVE_ICONV=1 DEFS=-DAFL_MODE=1
+
+afl-run:
+ nice afl-fuzz -i ../afl_in -o ../afl_out -- ./whois
+
+##############################################################################
install: install-whois install-mkpasswd install-pos
install-whois: whois