From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,444b069da19f534b,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-03-11 10:18:28 PST Path: sparky!uunet!news.claremont.edu!ucivax!news.service.uci.edu!draco.acs.uci.edu!iglesias From: iglesias@draco.acs.uci.edu (Mike Iglesias) Subject: Re: Crack 4.1 on OSF/1 1.2 Nntp-Posting-Host: draco.acs.uci.edu Message-ID: <2B9F7079.2848@news.service.uci.edu> Newsgroups: comp.sys.dec Organization: University of California, Irvine Date: 11 Mar 93 17:01:45 GMT References: In article kborge@bilbo.uio.no (Knut Borge) writes: > >The subject says it all, has anyone managed to get this running? Yes, and an Alpha makes a dandy password checker. Apply the patches at the end of this message to make Crack run on your Alpha. Mike Iglesias Internet: iglesias@draco.acs.uci.edu University of California, Irvine BITNET: iglesias@uci Office of Academic Computing uucp: ...!ucbvax!ucivax!iglesias Distributed Computing Support phone: (714) 856-6926 *** 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); }