svn commit: r363630 - in head/security/rainbowcrack: . files
Adam Weinberger
adamw at FreeBSD.org
Thu Jul 31 16:27:01 UTC 2014
Author: adamw
Date: Thu Jul 31 16:26:58 2014
New Revision: 363630
URL: http://svnweb.freebsd.org/changeset/ports/363630
QAT: https://qat.redports.org/buildarchive/r363630/
Log:
Stage and unbreak by adding missing headers and removing the MD2 code.
Added:
head/security/rainbowcrack/files/patch-Public.h (contents, props changed)
head/security/rainbowcrack/files/patch-RainbowTableDump.cpp (contents, props changed)
head/security/rainbowcrack/files/patch-RainbowTableGenerate.cpp (contents, props changed)
head/security/rainbowcrack/files/patch-RainbowTableSort.cpp (contents, props changed)
Modified:
head/security/rainbowcrack/Makefile
head/security/rainbowcrack/files/patch-HashAlgorithm.cpp
head/security/rainbowcrack/files/patch-HashAlgorithm.h
head/security/rainbowcrack/files/patch-HashRoutine.cpp
head/security/rainbowcrack/pkg-plist
Modified: head/security/rainbowcrack/Makefile
==============================================================================
--- head/security/rainbowcrack/Makefile Thu Jul 31 16:13:00 2014 (r363629)
+++ head/security/rainbowcrack/Makefile Thu Jul 31 16:26:58 2014 (r363630)
@@ -6,12 +6,11 @@ PORTVERSION= 1.2
CATEGORIES= security
MASTER_SITES= http://www.semprixd.com/shares/ports/
-MAINTAINER= ports at FreeBSD.org
+MAINTAINER= ports at FreeBSD.org
COMMENT= Hash cracker that precomputes plaintext - ciphertext pairs in advance
USES= dos2unix
-NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
@@ -24,9 +23,9 @@ post-patch:
do-install:
.for f in rcrack rtgen rtdump rtsort
- ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/charset.txt ${EXAMPLESDIR}
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/charset.txt ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>
Modified: head/security/rainbowcrack/files/patch-HashAlgorithm.cpp
==============================================================================
--- head/security/rainbowcrack/files/patch-HashAlgorithm.cpp Thu Jul 31 16:13:00 2014 (r363629)
+++ head/security/rainbowcrack/files/patch-HashAlgorithm.cpp Thu Jul 31 16:26:58 2014 (r363630)
@@ -1,13 +1,12 @@
---- ./HashAlgorithm.cpp.orig 2008-07-22 20:31:14.000000000 -0400
-+++ ./HashAlgorithm.cpp 2008-07-22 20:35:25.000000000 -0400
-@@ -6,9 +6,14 @@
+--- HashAlgorithm.cpp.orig 2014-07-31 12:12:45.000000000 -0400
++++ HashAlgorithm.cpp 2014-07-31 12:21:30.000000000 -0400
+@@ -6,9 +6,13 @@
#include "HashAlgorithm.h"
+#include "Public.h"
+
#include <openssl/des.h>
-+#include <openssl/md2.h>
+#include <openssl/md4.h>
#include <openssl/md5.h>
#include <openssl/sha.h>
@@ -15,7 +14,7 @@
#ifdef _WIN32
#pragma comment(lib, "libeay32.lib")
#endif
-@@ -48,6 +53,30 @@
+@@ -48,6 +52,25 @@
des_ecb_encrypt((des_cblock*)magic, (des_cblock*)pHash, ks, DES_ENCRYPT);
}
@@ -33,11 +32,6 @@
+ MD4(UnicodePlain, nPlainLen * 2, pHash);
+}
+
-+void HashMD2(unsigned char* pPlain, int nPlainLen, unsigned char* pHash)
-+{
-+ MD2(pPlain, nPlainLen, pHash);
-+}
-+
+void HashMD4(unsigned char* pPlain, int nPlainLen, unsigned char* pHash)
+{
+ MD4(pPlain, nPlainLen, pHash);
@@ -46,7 +40,7 @@
void HashMD5(unsigned char* pPlain, int nPlainLen, unsigned char* pHash)
{
MD5(pPlain, nPlainLen, pHash);
-@@ -57,3 +86,9 @@
+@@ -57,3 +80,9 @@
{
SHA1(pPlain, nPlainLen, pHash);
}
Modified: head/security/rainbowcrack/files/patch-HashAlgorithm.h
==============================================================================
--- head/security/rainbowcrack/files/patch-HashAlgorithm.h Thu Jul 31 16:13:00 2014 (r363629)
+++ head/security/rainbowcrack/files/patch-HashAlgorithm.h Thu Jul 31 16:26:58 2014 (r363630)
@@ -1,12 +1,11 @@
---- ./HashAlgorithm.h.orig 2008-07-22 20:30:34.000000000 -0400
-+++ ./HashAlgorithm.h 2008-07-22 20:31:07.000000000 -0400
-@@ -8,7 +8,13 @@
+--- HashAlgorithm.h.orig 2014-07-31 12:12:45.000000000 -0400
++++ HashAlgorithm.h 2014-07-31 12:21:55.000000000 -0400
+@@ -8,7 +8,12 @@
#define _HASHALGORITHM_H
void HashLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
+void HashNTLM(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
+
-+void HashMD2(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
+void HashMD4(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
void HashMD5(unsigned char* pPlain, int nPlainLen, unsigned char* pHash);
+
Modified: head/security/rainbowcrack/files/patch-HashRoutine.cpp
==============================================================================
--- head/security/rainbowcrack/files/patch-HashRoutine.cpp Thu Jul 31 16:13:00 2014 (r363629)
+++ head/security/rainbowcrack/files/patch-HashRoutine.cpp Thu Jul 31 16:26:58 2014 (r363630)
@@ -1,11 +1,10 @@
---- ./HashRoutine.cpp.orig 2008-07-22 20:27:54.000000000 -0400
-+++ ./HashRoutine.cpp 2008-07-22 20:28:34.000000000 -0400
-@@ -18,8 +18,12 @@
+--- HashRoutine.cpp.orig 2014-07-31 12:12:45.000000000 -0400
++++ HashRoutine.cpp 2014-07-31 12:20:45.000000000 -0400
+@@ -18,8 +18,11 @@
// Notice: MIN_HASH_LEN <= nHashLen <= MAX_HASH_LEN
AddHashRoutine("lm", HashLM, 8);
+ AddHashRoutine("ntlm", HashNTLM, 16);
-+ AddHashRoutine("md2", HashMD2, 16);
+ AddHashRoutine("md4", HashMD4, 16);
AddHashRoutine("md5", HashMD5, 16);
AddHashRoutine("sha1", HashSHA1, 20);
Added: head/security/rainbowcrack/files/patch-Public.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rainbowcrack/files/patch-Public.h Thu Jul 31 16:26:58 2014 (r363630)
@@ -0,0 +1,11 @@
+--- Public.h.orig 2014-07-31 12:15:30.000000000 -0400
++++ Public.h 2014-07-31 12:15:56.000000000 -0400
+@@ -12,6 +12,8 @@
+ #include <string>
+ #include <vector>
+ #include <list>
++#include <sys/types.h>
++
+ using namespace std;
+
+ #ifdef _WIN32
Added: head/security/rainbowcrack/files/patch-RainbowTableDump.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rainbowcrack/files/patch-RainbowTableDump.cpp Thu Jul 31 16:26:58 2014 (r363630)
@@ -0,0 +1,10 @@
+--- RainbowTableDump.cpp.orig 2014-07-31 12:22:38.000000000 -0400
++++ RainbowTableDump.cpp 2014-07-31 12:22:51.000000000 -0400
+@@ -5,6 +5,7 @@
+ */
+
+ #include "ChainWalkContext.h"
++#include <stdlib.h>
+
+ int main(int argc, char* argv[])
+ {
Added: head/security/rainbowcrack/files/patch-RainbowTableGenerate.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rainbowcrack/files/patch-RainbowTableGenerate.cpp Thu Jul 31 16:26:58 2014 (r363630)
@@ -0,0 +1,10 @@
+--- RainbowTableGenerate.cpp.orig 2014-07-31 12:14:05.000000000 -0400
++++ RainbowTableGenerate.cpp 2014-07-31 12:14:24.000000000 -0400
+@@ -14,6 +14,7 @@
+ #include <unistd.h>
+ #endif
+ #include <time.h>
++#include <stdlib.h>
+
+ #include "ChainWalkContext.h"
+
Added: head/security/rainbowcrack/files/patch-RainbowTableSort.cpp
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rainbowcrack/files/patch-RainbowTableSort.cpp Thu Jul 31 16:26:58 2014 (r363630)
@@ -0,0 +1,10 @@
+--- RainbowTableSort.cpp.orig 2014-07-31 12:23:47.000000000 -0400
++++ RainbowTableSort.cpp 2014-07-31 12:23:58.000000000 -0400
+@@ -5,6 +5,7 @@
+ */
+
+ #include "Public.h"
++#include <stdlib.h>
+
+ #define ASSUMED_MIN_MEMORY 32 * 1024 * 1024
+
Modified: head/security/rainbowcrack/pkg-plist
==============================================================================
--- head/security/rainbowcrack/pkg-plist Thu Jul 31 16:13:00 2014 (r363629)
+++ head/security/rainbowcrack/pkg-plist Thu Jul 31 16:26:58 2014 (r363630)
@@ -2,5 +2,5 @@ bin/rcrack
bin/rtgen
bin/rtdump
bin/rtsort
-%%EXAMPLESDIR%%/charset.txt
- at dirrm %%EXAMPLESDIR%%
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/charset.txt
+%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
More information about the svn-ports-head
mailing list