summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2017-03-07 12:56:36 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2017-03-07 12:56:36 +0000
commit6b74ae23bb1136ca9d747e61fd5a64be5965441f (patch)
tree9977f5ca7452ef4d86a9e7c16e071a09125e8c0a
parentUpdate devel/tbb to 2017.5 (diff)
Add a port of `security/0d1n', web HTTP fuzzing tool and bruteforcer.
Because GitHub releases (tarballs) are not fetched with correct modification time, set TIMESTAMP to 1484434410 which corresponds to commit 5e4e0ee tagged as this release. PR: 214503 (modified) Submitted by: Rihaz Jerrin
Notes
Notes: svn path=/head/; revision=435600
-rw-r--r--security/0d1n/Makefile33
-rw-r--r--security/0d1n/distinfo3
-rw-r--r--security/0d1n/files/patch-Makefile25
-rw-r--r--security/0d1n/pkg-descr10
-rw-r--r--security/Makefile1
5 files changed, 72 insertions, 0 deletions
diff --git a/security/0d1n/Makefile b/security/0d1n/Makefile
new file mode 100644
index 000000000000..2b349413aa31
--- /dev/null
+++ b/security/0d1n/Makefile
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+PORTNAME= 0d1n
+PORTVERSION= 2.3
+CATEGORIES= security
+
+MAINTAINER= zackj901@yandex.com
+COMMENT= Open source web HTTP fuzzing tool and bruteforcer
+
+LICENSE= GPLv3
+
+LIB_DEPENDS= libcurl.so:ftp/curl
+
+USE_GITHUB= yes
+GH_ACCOUNT= CoolerVoid
+
+PLIST_FILES= bin/0d1n
+PORTDOCS= README.txt
+
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${REINPLACE_CMD} -e '/^#include <alloca\.h>/d' \
+ ${WRKSRC}/get_csrf_token.h ${WRKSRC}/spider.h
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/security/0d1n/distinfo b/security/0d1n/distinfo
new file mode 100644
index 000000000000..48fa71e7735e
--- /dev/null
+++ b/security/0d1n/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1488890485
+SHA256 (CoolerVoid-0d1n-2.3_GH0.tar.gz) = 7fe26f0268fe63ec0352502ae590a7a5e258248f253649661dc782ca7edd52ae
+SIZE (CoolerVoid-0d1n-2.3_GH0.tar.gz) = 3866302
diff --git a/security/0d1n/files/patch-Makefile b/security/0d1n/files/patch-Makefile
new file mode 100644
index 000000000000..60a82fbd4ce7
--- /dev/null
+++ b/security/0d1n/files/patch-Makefile
@@ -0,0 +1,25 @@
+--- Makefile.orig 2017-01-14 22:53:30 UTC
++++ Makefile
+@@ -1,17 +1,9 @@
+-CC=gcc
+-CFLAGS=-W -Wall -Wextra -O2 -fstack-protector-all
+-DFLAGS=-D_FORTIFY_SOURCE=2
+-UNAME_S := $(shell uname -s)
+-ifeq ($(UNAME_S),Darwin)
+- LDFLAGS=-Wl,-lcurl
+-else
+- LDFLAGS=-Wl,-z,relro,-z,now -lcurl
+-endif
+-
+-#LDFLAGS=-lcurl
+-
++CC?=cc
++CFLAGS+=-W -Wall -Wextra -fstack-protector-all
++DFLAGS=-D_FORTIFY_SOURCE=2 -I /usr/local/include
++LDFLAGS=-Wl,-z,relro,-z,now,-L,/usr/local/lib,-lcurl
+
+-0d1n: 0d1n.c
++all: 0d1n.c
+ $(CC) $(CFLAGS) $(DFLAGS) -c *.c
+ $(CC) -o 0d1n *.o $(LDFLAGS)
+
diff --git a/security/0d1n/pkg-descr b/security/0d1n/pkg-descr
new file mode 100644
index 000000000000..85057c4ac8aa
--- /dev/null
+++ b/security/0d1n/pkg-descr
@@ -0,0 +1,10 @@
+0d1n is a tool for automating customized attacks against web applications.
+Some of its features:
+
+ - Brute force login and passwords in authentication forms
+ - Directory disclosure (use PATH list to brute and find HTTP status code)
+ - Test to find SQL injection and XSS vulnerabilities
+ - Options to load ANTI-CSRF token for each request
+ - Options to use random proxy per request
+
+WWW: https://github.com/CoolerVoid/0d1n
diff --git a/security/Makefile b/security/Makefile
index 04b2167306fa..8ae7984a105b 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -3,6 +3,7 @@
COMMENT = Security tools
+ SUBDIR += 0d1n
SUBDIR += ADMsmb
SUBDIR += ADMsnmp
SUBDIR += R-cran-ROAuth