From owner-svn-ports-head@FreeBSD.ORG Thu Jul 31 16:27:01 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 487111FE; Thu, 31 Jul 2014 16:27:01 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 28ED526BB; Thu, 31 Jul 2014 16:27:01 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s6VGR10j077768; Thu, 31 Jul 2014 16:27:01 GMT (envelope-from adamw@svn.freebsd.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s6VGQxWA077743; Thu, 31 Jul 2014 16:26:59 GMT (envelope-from adamw@svn.freebsd.org) Message-Id: <201407311626.s6VGQxWA077743@svn.freebsd.org> From: Adam Weinberger Date: Thu, 31 Jul 2014 16:26:59 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r363630 - in head/security/rainbowcrack: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Jul 2014 16:27:01 -0000 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@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Hash cracker that precomputes plaintext - ciphertext pairs in advance USES= dos2unix -NO_STAGE= yes .include .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 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 -+#include +#include #include #include @@ -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 + #include + #include ++#include ++ + 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 + + 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 + #endif + #include ++#include + + #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 + + #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 -@dirrm %%EXAMPLESDIR%% +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/charset.txt +%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%