From: dave@odyssey.ucc.ie
Subject: SUMMARY: Crack + ufc-crypt on OSF
Date: Fri, 29 Apr 1994 17:13:14 GMT [thread overview]
Message-ID: <Cp13n5.AF1@curia.ucc.ie> (raw)
Thank you all for your responses, especially Michel van der List
<vanderli@aquila.rm.fccc.edu> (for pointing me toward ufc-crypt at
prep.ai.mit.edu) and Horst Luehrsen
<Horst.Luehrsen@informatik.uni-erlangen.de> for his patches to ufc-crypt
and to Crack itself (included below).
I downloaded the gnu ufc-crypt and it compiled fine, but I still needed to
apply Horst's patches to run Crack.
thanks people, yet again a complement to the power of usenet, and the generosity of spirit of its users, I hope this is of use to some others ...
perhaps it should go on an ftp site
dave
(Message inbox:10)
Return-Path: horst@faui63.informatik.uni-erlangen.de
Received: from faui45.informatik.uni-erlangen.de by CCSERV.UCC.IE (PMDF #3468 )
id <01HBR52B92EO0004MM@CCSERV.UCC.IE>; Fri, 29 Apr 1994 16:21:48 GMT
Received: from faui63.informatik.uni-erlangen.de by uni-erlangen.de with SMTP;
id AA01451 (5.65c-6/7.3v-FAU); Fri, 29 Apr 1994 17:23:25 +0200
Received: by faui63.informatik.uni-erlangen.de (5.65c+7_6/7.3h-FAU) id
AA06007; Fri, 29 Apr 1994 17:23:25 +0200
Date: 29 Apr 1994 17:23:25 +0200
From: Horst Luehrsen <Horst.Luehrsen@informatik.uni-erlangen.de>
Subject: Re: Has anyone managed to compile Crack on OSF ?
To: dave@odyssey
Reply-To: Horst.Luehrsen@Informatik.Uni-Erlangen.DE
Message-Id: <199404291523.AA06007@faui63.informatik.uni-erlangen.de>
X-Envelope-To: dave@odyssey.ucc.ie
Content-Transfer-Encoding: 7BIT
Article 1995 of comp.unix.osf.osf1:
Path: rrze.uni-erlangen.de!fauern!zib-berlin.de!netmbx.de!Germany.EU.net!EU.net!howland.reston.ans.net!usc!news.service.uci.edu!draco.acs.uci.edu!iglesias
From: iglesias@draco.acs.uci.edu (Mike Iglesias)
Newsgroups: comp.unix.osf.osf1
Subject: Re: Password cracker on OSF/1
Date: 11 Feb 1994 23:20:37 GMT
Organization: University of California, Irvine
Lines: 119
Message-ID: <2jh3s5$3i0@news.service.uci.edu>
References: <1994Feb8.135543.15998@htl-bw.ch> <CKyy19.68y@acsu.buffalo.edu>
NNTP-Posting-Host: draco.acs.uci.edu
In article <CKyy19.68y@acsu.buffalo.edu>,
Ajay Shekhawat <ajay@cs.Buffalo.EDU> wrote:
>I'm having the same problem. The WWW server at DEC says that crack 4.1 has
>been ported to DEC machines, and is available at ftp.cert.org; but I've
>been trying to access that machine for a couple of days now, and it
>seems to be down.
>Is there any other site which carries a port of crack4.1 to the Alpha?
Enclosed below are the patches I used to get Crack working on the
Alpha. The patches fix bytesex.c so it can figure out the endian
of the system.
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 856-6926
Office of Academic Computing FAX: (714) 725-2069
Distributed Computing Support
*** ufc-crypt/ufc-crypt.h.dist Thu Mar 19 21:24:09 1992
--- ufc-crypt/ufc-crypt.h Wed Nov 25 08:52:18 1992
***************
*** 53,58 ****
--- 53,64 ----
#define _UFC_64_
#endif
+ #ifdef __alpha
+ typedef unsigned long ufc_long;
+ typedef unsigned long long64;
+ #define _UFC_64_
+ #endif
+
/*
* For debugging 64 bit code etc with 'gcc'
*/
*** Sources/bytesex.c.dist Thu Mar 19 21:13:46 1992
--- Sources/bytesex.c Tue Feb 23 17:26:25 1993
***************
*** 4,9 ****
--- 4,10 ----
{
char *p;
long int l;
+ int endian = 0; /* 1 = big, -1 = little */
l = 'a' << 24 | 'b' << 16 | 'c' << 8 | 'd';
p = (char *) &l;
***************
*** 23,32 ****
}
if (!strncmp (p, "abcd", 4))
{
! puts ("-DBIG_ENDIAN");
} else if (!strncmp (p, "dcba", 4))
{
! puts ("-DLITTLE_ENDIAN");
}
exit (0);
}
--- 24,56 ----
}
if (!strncmp (p, "abcd", 4))
{
! endian = 1;
} else if (!strncmp (p, "dcba", 4))
{
! endian = -1;
}
+ if (endian == 0) { /* try again after shifting l back 32 */
+ l >>= 32;
+ if (!strncmp (p, "abcd", 4))
+ {
+ endian = 1;
+ } else if (!strncmp (p, "dcba", 4))
+ {
+ endian = -1;
+ }
+ }
+ switch (endian)
+ {
+ case 0:
+ fprintf (stderr, "bytesex: Can't figure out endian of this system!\n");
+ exit(1);
+ case 1:
+ puts ("-DBIG_ENDIAN");
+ break;
+ case -1:
+ puts ("-DLITTLE_ENDIAN");
+ }
+
+
exit (0);
}
*** Sources/crack-supp.c.dist Thu Mar 19 21:13:47 1992
--- Sources/crack-supp.c Fri Nov 27 17:46:18 1992
***************
*** 44,53 ****
char *fmt;
long int a, b, c, d, e, f, g, h, i, j;
{
! long t;
time (&t);
! printf ("pwc: %-15.15s ", ctime (&t) + 4);
printf (fmt, a, b, c, d, e, f, g, h, i, j);
fflush (stdout);
}
--- 44,53 ----
char *fmt;
long int a, b, c, d, e, f, g, h, i, j;
{
! time_t t;
time (&t);
! printf ("pwc: %-15.15s ", (char *) ctime (&t) + 4);
printf (fmt, a, b, c, d, e, f, g, h, i, j);
fflush (stdout);
}
--
Horst Luehrsen <Horst.Luehrsen@Informatik.Uni-Erlangen.DE>
Martensstrasse 3, 91058 Erlangen
Tel: +49-9131-857884 Fax:+49-9131-32090
reply other threads:[~1994-04-29 17:13 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox