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

Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 182-187 Link Here
182
    SUBDIR += gwee
182
    SUBDIR += gwee
183
    SUBDIR += hackbot
183
    SUBDIR += hackbot
184
    SUBDIR += hamachi
184
    SUBDIR += hamachi
185
    SUBDIR += hashcat
185
    SUBDIR += heimdal
186
    SUBDIR += heimdal
186
    SUBDIR += hitch
187
    SUBDIR += hitch
187
    SUBDIR += hlfl
188
    SUBDIR += hlfl
(-)hashcat/Makefile (+34 lines)
Line 0 Link Here
1
# Created by: Nikolai Lifanov <lifanov@mail.lifanov.com>
2
# $FreeBSD$
3
4
PORTNAME=	hashcat
5
PORTVERSION=	2.00
6
CATEGORIES=	security
7
8
MAINTAINER=	lifanov@mail.lifanov.com
9
COMMENT=	Advanced CPU-based password recovery utility
10
11
LICENSE=	MIT
12
LICENSE_FILE=	${WRKSRC}/docs/license.txt
13
14
USE_GITHUB=	yes
15
GH_ACCOUNT=	hashcat
16
17
USE_GCC=	any
18
19
USES=		gmake
20
21
ONLY_FOR_ARCHS=	amd64
22
ONLY_FOR_ARCHS_REASON=	"uses amd64 instructions"
23
24
ALL_TARGET=	posix64 posixXOP
25
26
do-install:
27
.for v in 64 XOP
28
	${INSTALL_PROGRAM} ${WRKSRC}/hashcat-cli${v}.bin ${STAGEDIR}${LOCALBASE}/bin
29
.endfor
30
	(cd ${WRKSRC} && ${COPYTREE_SHARE} "charsets rules tables salts" ${STAGEDIR}${DATADIR})
31
	(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
32
	(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
33
34
.include <bsd.port.mk>
(-)hashcat/distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (hashcat-hashcat-2.00_GH0.tar.gz) = 6325e6d75a4df3485adec00f74e5887326809c15ed31bfe74a12b62943245444
2
SIZE (hashcat-hashcat-2.00_GH0.tar.gz) = 3463012
(-)hashcat/files/patch-src_hashcat-cli.c (+95 lines)
Line 0 Link Here
1
--- src/hashcat-cli.c.orig	2015-12-04 15:35:08 UTC
2
+++ src/hashcat-cli.c
3
@@ -17,14 +17,14 @@
4
 
5
 // for interactive status prompt
6
 #ifdef POSIX
7
-#ifndef OSX
8
+#if defined(OSX) || defined(__FreeBSD__)
9
 
10
-#include <termio.h>
11
+#include <termios.h>
12
+#include <sys/ioctl.h>
13
 
14
 #else
15
 
16
-#include <termios.h>
17
-#include <sys/ioctl.h>
18
+#include <termio.h>
19
 
20
 #endif
21
 #endif
22
@@ -2836,16 +2836,16 @@ void save_hash ()
23
 
24
 #ifdef POSIX
25
 
26
-#ifndef OSX
27
+#if defined(OSX) || defined(__FreeBSD__)
28
 
29
-static struct termio savemodes;
30
+static struct termios savemodes;
31
 static int havemodes = 0;
32
 
33
 int tty_break ()
34
 {
35
-  struct termio modmodes;
36
+  struct termios modmodes;
37
 
38
-  if (ioctl (fileno (stdin), TCGETA, &savemodes) < 0) return -1;
39
+  if (ioctl (fileno (stdin), TIOCGETA, &savemodes) < 0) return -1;
40
 
41
   havemodes = 1;
42
 
43
@@ -2854,7 +2854,7 @@ int tty_break ()
44
   modmodes.c_cc[VMIN] = 1;
45
   modmodes.c_cc[VTIME] = 0;
46
 
47
-  return ioctl (fileno (stdin), TCSETAW, &modmodes);
48
+  return ioctl (fileno (stdin), TIOCSETAW, &modmodes);
49
 }
50
 
51
 int tty_getchar ()
52
@@ -2882,19 +2882,19 @@ int tty_fix ()
53
 {
54
   if (!havemodes) return 0;
55
 
56
-  return ioctl (fileno (stdin), TCSETAW, &savemodes);
57
+  return ioctl (fileno (stdin), TIOCSETAW, &savemodes);
58
 }
59
 
60
 #else
61
 
62
-static struct termios savemodes;
63
+static struct termio savemodes;
64
 static int havemodes = 0;
65
 
66
 int tty_break ()
67
 {
68
-  struct termios modmodes;
69
+  struct termio modmodes;
70
 
71
-  if (ioctl (fileno (stdin), TIOCGETA, &savemodes) < 0) return -1;
72
+  if (ioctl (fileno (stdin), TCGETA, &savemodes) < 0) return -1;
73
 
74
   havemodes = 1;
75
 
76
@@ -2903,7 +2903,7 @@ int tty_break ()
77
   modmodes.c_cc[VMIN] = 1;
78
   modmodes.c_cc[VTIME] = 0;
79
 
80
-  return ioctl (fileno (stdin), TIOCSETAW, &modmodes);
81
+  return ioctl (fileno (stdin), TCSETAW, &modmodes);
82
 }
83
 
84
 int tty_getchar ()
85
@@ -2931,8 +2931,9 @@ int tty_fix ()
86
 {
87
   if (!havemodes) return 0;
88
 
89
-  return ioctl (fileno (stdin), TIOCSETAW, &savemodes);
90
+  return ioctl (fileno (stdin), TCSETAW, &savemodes);
91
 }
92
+
93
 #endif
94
 #endif
95
 
(-)hashcat/pkg-descr (+5 lines)
Line 0 Link Here
1
Hashcat is an advanced CPU-based password recovery utility for FreeBSD,
2
Windows 7/8/10, Apple OS X, and GNU/Linux, supporting seven unique modes
3
of attack for over 100 optimized hashing algorithms.
4
5
WWW: https://hashcat.net/hashcat/
(-)hashcat/pkg-plist (+173 lines)
Line 0 Link Here
1
bin/hashcat-cli64.bin
2
bin/hashcat-cliXOP.bin
3
%%PORTDOCS%%%%DOCSDIR%%/BUILD.md
4
%%PORTDOCS%%%%DOCSDIR%%/changes.txt
5
%%PORTDOCS%%%%DOCSDIR%%/contact.txt
6
%%PORTDOCS%%%%DOCSDIR%%/credits.txt
7
%%PORTDOCS%%%%DOCSDIR%%/license.txt
8
%%PORTDOCS%%%%DOCSDIR%%/rules.txt
9
%%PORTDOCS%%%%DOCSDIR%%/user_manuals.txt
10
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M0.hash
11
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M0.word
12
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M10.hash
13
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M10.word
14
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M100.hash
15
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M100.word
16
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1000.hash
17
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1000.word
18
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M101.hash
19
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M101.word
20
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1100.hash
21
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1100.word
22
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1400.hash
23
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1400.word
24
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1410.hash
25
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1410.word
26
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1420.hash
27
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1420.word
28
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1600.hash
29
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1600.word
30
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1700.hash
31
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1700.word
32
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1710.hash
33
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1710.word
34
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1720.hash
35
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1720.word
36
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1731.hash
37
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1731.word
38
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1800.hash
39
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M1800.word
40
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M200.hash
41
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M200.word
42
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M300.hash
43
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M300.word
44
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M400.hash
45
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M400.word
46
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M500.hash
47
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M500.word
48
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M800.hash
49
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M800.word
50
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M900.hash
51
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A0.M900.word
52
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A1.M0.hash
53
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A1.M0.word
54
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A3.M0.hash
55
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/A3.M0.word
56
%%DATADIR%%/charsets/combined/Bulgarian.hcchr
57
%%DATADIR%%/charsets/combined/Castilian.hcchr
58
%%DATADIR%%/charsets/combined/Catalan.hcchr
59
%%DATADIR%%/charsets/combined/English.hcchr
60
%%DATADIR%%/charsets/combined/French.hcchr
61
%%DATADIR%%/charsets/combined/German.hcchr
62
%%DATADIR%%/charsets/combined/Greek.hcchr
63
%%DATADIR%%/charsets/combined/GreekPolytonic.hcchr
64
%%DATADIR%%/charsets/combined/Italian.hcchr
65
%%DATADIR%%/charsets/combined/Lithuanian.hcchr
66
%%DATADIR%%/charsets/combined/Polish.hcchr
67
%%DATADIR%%/charsets/combined/Portuguese.hcchr
68
%%DATADIR%%/charsets/combined/Russian.hcchr
69
%%DATADIR%%/charsets/combined/Slovak.hcchr
70
%%DATADIR%%/charsets/combined/Spanish.hcchr
71
%%DATADIR%%/charsets/special/Castilian/es-ES_ISO-8859-1-special.hcchr
72
%%DATADIR%%/charsets/special/Castilian/es-ES_ISO-8859-15-special.hcchr
73
%%DATADIR%%/charsets/special/Castilian/es-ES_cp1252-special.hcchr
74
%%DATADIR%%/charsets/special/Catalan/ca_ISO-8859-1-special.hcchr
75
%%DATADIR%%/charsets/special/Catalan/ca_ISO-8859-15-special.hcchr
76
%%DATADIR%%/charsets/special/Catalan/ca_cp1252-special.hcchr
77
%%DATADIR%%/charsets/special/French/fr_ISO-8859-1-special.hcchr
78
%%DATADIR%%/charsets/special/French/fr_ISO-8859-15-special.hcchr
79
%%DATADIR%%/charsets/special/French/fr_ISO-8859-16-special.hcchr
80
%%DATADIR%%/charsets/special/French/fr_cp1252-special.hcchr
81
%%DATADIR%%/charsets/special/German/de_ISO-8859-1-special.hcchr
82
%%DATADIR%%/charsets/special/German/de_ISO-8859-15-special.hcchr
83
%%DATADIR%%/charsets/special/German/de_cp1252-special.hcchr
84
%%DATADIR%%/charsets/special/Greek/el_ISO-8859-7-special.hcchr
85
%%DATADIR%%/charsets/special/Greek/el_cp1253-special.hcchr
86
%%DATADIR%%/charsets/special/Italian/it_ISO-8859-1-special.hcchr
87
%%DATADIR%%/charsets/special/Italian/it_ISO-8859-15-special.hcchr
88
%%DATADIR%%/charsets/special/Italian/it_cp1252-special.hcchr
89
%%DATADIR%%/charsets/special/Polish/pl_cp1250-special.hcchr
90
%%DATADIR%%/charsets/special/Portuguese/pt_ISO-8859-1-special.hcchr
91
%%DATADIR%%/charsets/special/Portuguese/pt_ISO-8859-15-special.hcchr
92
%%DATADIR%%/charsets/special/Portuguese/pt_cp1252-special.hcchr
93
%%DATADIR%%/charsets/special/Russian/ru_ISO-8859-5-special.hcchr
94
%%DATADIR%%/charsets/special/Russian/ru_cp1251-special.hcchr
95
%%DATADIR%%/charsets/special/Slovak/sk_ISO-8859-2-special.hcchr
96
%%DATADIR%%/charsets/special/Slovak/sk_cp1250-special.hcchr
97
%%DATADIR%%/charsets/special/Spanish/es_ISO-8859-1-special.hcchr
98
%%DATADIR%%/charsets/special/Spanish/es_ISO-8859-15-special.hcchr
99
%%DATADIR%%/charsets/special/Spanish/es_cp1252-special.hcchr
100
%%DATADIR%%/charsets/standard/Bulgarian/bg_ISO-8859-5.hcchr
101
%%DATADIR%%/charsets/standard/Bulgarian/bg_KOI8-R.hcchr
102
%%DATADIR%%/charsets/standard/Bulgarian/bg_cp1251.hcchr
103
%%DATADIR%%/charsets/standard/Castilian/es-ES_ISO-8859-1.hcchr
104
%%DATADIR%%/charsets/standard/Castilian/es-ES_ISO-8859-15.hcchr
105
%%DATADIR%%/charsets/standard/Castilian/es-ES_cp1252.hcchr
106
%%DATADIR%%/charsets/standard/Catalan/ca_ISO-8859-1.hcchr
107
%%DATADIR%%/charsets/standard/Catalan/ca_ISO-8859-15.hcchr
108
%%DATADIR%%/charsets/standard/Catalan/ca_cp1252.hcchr
109
%%DATADIR%%/charsets/standard/English/en_ISO-8859-1.hcchr
110
%%DATADIR%%/charsets/standard/English/en_ISO-8859-15.hcchr
111
%%DATADIR%%/charsets/standard/English/en_cp1252.hcchr
112
%%DATADIR%%/charsets/standard/French/fr_ISO-8859-1.hcchr
113
%%DATADIR%%/charsets/standard/French/fr_ISO-8859-15.hcchr
114
%%DATADIR%%/charsets/standard/French/fr_ISO-8859-16.hcchr
115
%%DATADIR%%/charsets/standard/French/fr_cp1252.hcchr
116
%%DATADIR%%/charsets/standard/German/de_ISO-8859-1.hcchr
117
%%DATADIR%%/charsets/standard/German/de_ISO-8859-15.hcchr
118
%%DATADIR%%/charsets/standard/German/de_cp1252.hcchr
119
%%DATADIR%%/charsets/standard/Greek/el_ISO-8859-7.hcchr
120
%%DATADIR%%/charsets/standard/Greek/el_cp1253.hcchr
121
%%DATADIR%%/charsets/standard/GreekPolytonic/el_polytonic_ISO-8859-7.hcchr
122
%%DATADIR%%/charsets/standard/GreekPolytonic/el_polytonic_cp1253.hcchr
123
%%DATADIR%%/charsets/standard/Hungarian/hu_cp1250.hcchr
124
%%DATADIR%%/charsets/standard/Italian/it_ISO-8859-1.hcchr
125
%%DATADIR%%/charsets/standard/Italian/it_ISO-8859-15.hcchr
126
%%DATADIR%%/charsets/standard/Italian/it_cp1252.hcchr
127
%%DATADIR%%/charsets/standard/Lithuanian/lt_ISO-8859-13.hcchr
128
%%DATADIR%%/charsets/standard/Lithuanian/lt_ISO-8859-4.hcchr
129
%%DATADIR%%/charsets/standard/Lithuanian/lt_cp1257.hcchr
130
%%DATADIR%%/charsets/standard/Polish/pl_ISO-8859-2.hcchr
131
%%DATADIR%%/charsets/standard/Polish/pl_cp1250.hcchr
132
%%DATADIR%%/charsets/standard/Portuguese/pt_ISO-8859-1.hcchr
133
%%DATADIR%%/charsets/standard/Portuguese/pt_ISO-8859-15.hcchr
134
%%DATADIR%%/charsets/standard/Portuguese/pt_cp1252.hcchr
135
%%DATADIR%%/charsets/standard/Russian/ru_ISO-8859-5.hcchr
136
%%DATADIR%%/charsets/standard/Russian/ru_KOI8-R.hcchr
137
%%DATADIR%%/charsets/standard/Russian/ru_cp1251.hcchr
138
%%DATADIR%%/charsets/standard/Slovak/sk_ISO-8859-2.hcchr
139
%%DATADIR%%/charsets/standard/Slovak/sk_cp1250.hcchr
140
%%DATADIR%%/charsets/standard/Spanish/es_ISO-8859-1.hcchr
141
%%DATADIR%%/charsets/standard/Spanish/es_ISO-8859-15.hcchr
142
%%DATADIR%%/charsets/standard/Spanish/es_cp1252.hcchr
143
%%DATADIR%%/rules/Incisive-leetspeak.rule
144
%%DATADIR%%/rules/InsidePro-HashManager.rule
145
%%DATADIR%%/rules/InsidePro-PasswordsPro.rule
146
%%DATADIR%%/rules/Ninja-leetspeak.rule
147
%%DATADIR%%/rules/T0XlC-insert_00-99_1950-2050_toprules_0_F.rule
148
%%DATADIR%%/rules/T0XlC-insert_space_and_special_0_F.rule
149
%%DATADIR%%/rules/T0XlC-insert_top_100_passwords_1_G.rule
150
%%DATADIR%%/rules/T0XlC.rule
151
%%DATADIR%%/rules/T0XlCv1.rule
152
%%DATADIR%%/rules/best64.rule
153
%%DATADIR%%/rules/combinator.rule
154
%%DATADIR%%/rules/d3ad0ne.rule
155
%%DATADIR%%/rules/dive.rule
156
%%DATADIR%%/rules/generated.rule
157
%%DATADIR%%/rules/leetspeak.rule
158
%%DATADIR%%/rules/oscommerce.rule
159
%%DATADIR%%/rules/rockyou-30000.rule
160
%%DATADIR%%/rules/specific.rule
161
%%DATADIR%%/rules/toggles1.rule
162
%%DATADIR%%/rules/toggles2.rule
163
%%DATADIR%%/rules/toggles3.rule
164
%%DATADIR%%/rules/toggles4.rule
165
%%DATADIR%%/rules/toggles5.rule
166
%%DATADIR%%/salts/brute-oscommerce.salt
167
%%DATADIR%%/salts/brute-vbulletin.salt
168
%%DATADIR%%/tables/digits.table
169
%%DATADIR%%/tables/keyboard.en_ar1.utf8.table
170
%%DATADIR%%/tables/keyboard.en_ar2.utf8.table
171
%%DATADIR%%/tables/leet.table
172
%%DATADIR%%/tables/toggle_case.table
173
%%DATADIR%%/tables/toggle_case_and_leet.table

Return to bug 205160