svn commit: r435600 - in head/security: . 0d1n 0d1n/files

Alexey Dokuchaev danfe at FreeBSD.org
Tue Mar 7 12:56:38 UTC 2017


Author: danfe
Date: Tue Mar  7 12:56:36 2017
New Revision: 435600
URL: https://svnweb.freebsd.org/changeset/ports/435600

Log:
  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

Added:
  head/security/0d1n/
  head/security/0d1n/Makefile   (contents, props changed)
  head/security/0d1n/distinfo   (contents, props changed)
  head/security/0d1n/files/
  head/security/0d1n/files/patch-Makefile   (contents, props changed)
  head/security/0d1n/pkg-descr   (contents, props changed)
Modified:
  head/security/Makefile

Added: head/security/0d1n/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/0d1n/Makefile	Tue Mar  7 12:56:36 2017	(r435600)
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+PORTNAME=	0d1n
+PORTVERSION=	2.3
+CATEGORIES=	security
+
+MAINTAINER=	zackj901 at 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>

Added: head/security/0d1n/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/0d1n/distinfo	Tue Mar  7 12:56:36 2017	(r435600)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1488890485
+SHA256 (CoolerVoid-0d1n-2.3_GH0.tar.gz) = 7fe26f0268fe63ec0352502ae590a7a5e258248f253649661dc782ca7edd52ae
+SIZE (CoolerVoid-0d1n-2.3_GH0.tar.gz) = 3866302

Added: head/security/0d1n/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/0d1n/files/patch-Makefile	Tue Mar  7 12:56:36 2017	(r435600)
@@ -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)
+ 

Added: head/security/0d1n/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/0d1n/pkg-descr	Tue Mar  7 12:56:36 2017	(r435600)
@@ -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

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Tue Mar  7 12:44:41 2017	(r435599)
+++ head/security/Makefile	Tue Mar  7 12:56:36 2017	(r435600)
@@ -3,6 +3,7 @@
 
     COMMENT = Security tools
 
+    SUBDIR += 0d1n
     SUBDIR += ADMsmb
     SUBDIR += ADMsnmp
     SUBDIR += R-cran-ROAuth


More information about the svn-ports-all mailing list