View | Details | Raw Unified | Return to bug 269717 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/0d1n/Makefile (-4 / +7 lines)
Lines 1-5 Link Here
1
PORTNAME=	0d1n
1
PORTNAME=	0d1n
2
PORTVERSION=	3.8
2
PORTVERSION=	3.8
3
PORTREVISION=	1
3
CATEGORIES=	security
4
CATEGORIES=	security
4
5
5
MAINTAINER=	zackj901@yandex.com
6
MAINTAINER=	zackj901@yandex.com
Lines 14-27 USE_GITHUB= yes Link Here
14
GH_ACCOUNT=	CoolerVoid
15
GH_ACCOUNT=	CoolerVoid
15
GH_TAGNAME=	OdinV38
16
GH_TAGNAME=	OdinV38
16
17
17
PLIST_FILES=	bin/0d1n
18
PORTDOCS=	README.txt
18
PORTDOCS=	README.txt
19
19
20
OPTIONS_DEFINE=	DOCS
20
OPTIONS_DEFINE=	DOCS
21
21
22
post-patch:
22
pre-configure:
23
	@${REINPLACE_CMD}  -e  '/^#include <alloca\.h>/d' \
23
	${REINPLACE_CMD} -e 's,/opt/0d1n,${DATADIR},g' \
24
	${WRKSRC}/src/headers/spider.h ${WRKSRC}/src/headers/results.h
24
		${WRKSRC}/src/headers/file_ops.h \
25
		${WRKSRC}/src/file_ops.c \
26
		${WRKSRC}/src/opt_extract.c \
27
		${WRKSRC}/src/results.c
25
28
26
do-install:
29
do-install:
27
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
30
	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
(-)b/security/0d1n/files/patch-0d1n__viewer_lib_krypton_krypton.c (+14 lines)
Added Link Here
1
--- 0d1n_viewer/lib/krypton/krypton.c.orig	2023-02-20 12:36:21 UTC
2
+++ 0d1n_viewer/lib/krypton/krypton.c
3
@@ -112,11 +112,6 @@ typedef struct {
4
 #define NS_INTERNAL
5
 #endif
6
 
7
-/* C99 and later requires alloca.h. */
8
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ > 199900L
9
-#include <alloca.h>
10
-#endif
11
-
12
 #include <assert.h>
13
 #include <ctype.h>
14
 #include <errno.h>
(-)b/security/0d1n/files/patch-0d1n__viewer_lib_krypton_src_ktypes.h (+14 lines)
Added Link Here
1
--- 0d1n_viewer/lib/krypton/src/ktypes.h.orig	2023-02-20 12:36:40 UTC
2
+++ 0d1n_viewer/lib/krypton/src/ktypes.h
3
@@ -18,11 +18,6 @@
4
 #define NS_INTERNAL
5
 #endif
6
 
7
-/* C99 and later requires alloca.h. */
8
-#if defined(__STDC_VERSION__) && __STDC_VERSION__ > 199900L
9
-#include <alloca.h>
10
-#endif
11
-
12
 #include <assert.h>
13
 #include <ctype.h>
14
 #include <errno.h>
(-)b/security/0d1n/files/patch-src_0d1n.c (+12 lines)
Added Link Here
1
--- src/0d1n.c.orig	2023-02-20 12:38:21 UTC
2
+++ src/0d1n.c
3
@@ -62,8 +62,7 @@ main (int argc, char ** argv)
4
 /* remove comment to test the patch
5
 */
6
 #ifdef __GNUC__
7
-#  if __GNUC_PREREQ(10,0)
8
-
9
+#  if __GNUC__ >= 10
10
 	scan_gcc_new();
11
 #  else
12
 	scan_gcc_old();
(-)b/security/0d1n/files/patch-src_headers_file__ops.h (+10 lines)
Added Link Here
1
--- src/headers/file_ops.h.orig	2023-02-20 12:35:55 UTC
2
+++ src/headers/file_ops.h
3
@@ -12,7 +12,6 @@
4
 #include <stdlib.h>
5
 #include <unistd.h>
6
 #include <errno.h>
7
-#include <alloca.h>
8
 #include "opt_extract.h"
9
 
10
 void end_datatable(char * path);
(-)b/security/0d1n/files/patch-src_headers_results.h (+10 lines)
Added Link Here
1
--- src/headers/results.h.orig	2023-02-20 12:35:39 UTC
2
+++ src/headers/results.h
3
@@ -4,7 +4,6 @@
4
 #include <string.h>
5
 #include <stdlib.h>
6
 #include <stdbool.h>
7
-#include <alloca.h>
8
 #include <unistd.h>
9
 #include <sys/stat.h>
10
 #include <time.h>
(-)b/security/0d1n/files/patch-src_headers_spider.h (+10 lines)
Added Link Here
1
--- src/headers/spider.h.orig	2023-02-20 12:36:07 UTC
2
+++ src/headers/spider.h
3
@@ -4,7 +4,6 @@
4
 #include <string.h>
5
 #include <stdlib.h>
6
 #include <stdbool.h>
7
-#include <alloca.h>
8
 #include <unistd.h>
9
 #include <sys/stat.h>
10
 #include <time.h>
(-)b/security/0d1n/files/patch-src_mem__ops.c (+11 lines)
Added Link Here
1
--- src/mem_ops.c.orig	2023-02-20 12:57:16 UTC
2
+++ src/mem_ops.c
3
@@ -17,7 +17,7 @@ static void *
4
 xmalloc_fatal(size_t size) 
5
 {
6
 
7
-	DEBUG("\n Memory FAILURE...\n size dbg: %lu\n",size);
8
+	DEBUG("\n Memory FAILURE...\n size dbg: %zu\n",size);
9
 
10
 	exit(0);
11
 }
(-)b/security/0d1n/files/patch-src_opt__extract.c (+11 lines)
Added Link Here
1
--- src/opt_extract.c.orig	2023-02-20 12:39:15 UTC
2
+++ src/opt_extract.c
3
@@ -164,7 +164,7 @@ void 
4
 parser_opts (int argc, char **argv)
5
 {
6
 
7
-	char c;
8
+	int c;
9
 
10
 	static struct option long_options[] =
11
 	{
(-)b/security/0d1n/files/patch-src_strsec.c (+15 lines)
Added Link Here
1
--- src/strsec.c.orig	2023-02-20 12:39:57 UTC
2
+++ src/strsec.c
3
@@ -16,11 +16,11 @@
4
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
5
  */
6
 
7
+#include "strsec.h"
8
 
9
 #if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && \
10
     !defined(__bsdi__) && !defined(__APPLE__)
11
 
12
-#include "strsec.h"
13
 /*
14
  * Copy src to string dst of size siz.  At most siz-1 characters
15
  * will be copied.  Always NUL terminates (unless siz == 0).
(-)b/security/0d1n/pkg-plist (-1 / +28 lines)
Added Link Here
0
- 
1
bin/0d1n
2
%%DATADIR%%/payloads/crlfinjection.txt
3
%%DATADIR%%/payloads/dir_brute.txt
4
%%DATADIR%%/payloads/find_responses.txt
5
%%DATADIR%%/payloads/js_inject.txt
6
%%DATADIR%%/payloads/ldap_injection.txt
7
%%DATADIR%%/payloads/list.txt
8
%%DATADIR%%/payloads/openredirect.txt
9
%%DATADIR%%/payloads/passive_sqli.txt
10
%%DATADIR%%/payloads/password_brute.txt
11
%%DATADIR%%/payloads/path_traversal.txt
12
%%DATADIR%%/payloads/path_traversal_win32.txt
13
%%DATADIR%%/payloads/proxy.txt
14
%%DATADIR%%/payloads/proxy_list.txt
15
%%DATADIR%%/payloads/sqli.txt
16
%%DATADIR%%/payloads/useragents.txt
17
%%DATADIR%%/payloads/wordlist.txt
18
%%DATADIR%%/payloads/xml_attack.txt
19
%%DATADIR%%/payloads/xml_attacks.txt
20
%%DATADIR%%/payloads/xpath_injection.txt
21
%%DATADIR%%/payloads/xss.txt
22
%%DATADIR%%/payloads/xss_robertux.txt
23
%%DATADIR%%/payloads/xxe_fuzz.txt
24
%%DATADIR%%/templates/hammer1.conf
25
%%DATADIR%%/templates/hammer2.conf
26
%%DATADIR%%/templates/template.conf
27
%%PORTDOCS%%%%DOCSDIR%%/README.txt
28
@dir %%DATADIR%%/view/response_sources

Return to bug 269717