* password cracker
@ 1995-05-10 4:00 system PRIVILEGED account
1995-05-11 4:00 ` Tom Carlson
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: system PRIVILEGED account @ 1995-05-10 4:00 UTC (permalink / raw)
Has anyone gotten Crack_4.1 (or any version of crack) to run on OSF version 3.0?
When trying to run Crack (which makes itself - no makefile is used), I keep
getting the following compiler errors:
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 254: Syntax Error
Ll ^= (S0L)[ *dp STEP];
---------------------^
and many other similar errors. What do these errors mean?
-Dave Wolinski (novice system admin.)
University of Michigan
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: password cracker 1995-05-10 4:00 password cracker system PRIVILEGED account @ 1995-05-11 4:00 ` Tom Carlson 1995-05-12 4:00 ` Mike Iglesias 1995-05-18 4:00 ` Ram Rao 2 siblings, 0 replies; 4+ messages in thread From: Tom Carlson @ 1995-05-11 4:00 UTC (permalink / raw) In article <3opl6b$8sp@controversy.admin.lsa.umich.edu>, root@umaxp1.physics.lsa.umich.edu (system PRIVILEGED account) writes: |> |>Has anyone gotten Crack_4.1 (or any version of crack) to run on OSF version 3.0? |> |>When trying to run Crack (which makes itself - no makefile is used), I keep |>getting the following compiler errors: |> |>/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 254: Syntax Error |> Ll ^= (S0L)[ *dp STEP]; |> ---------------------^ |> |>and many other similar errors. What do these errors mean? Without knowing what that line macro expands to, you can't say. Try adding -P to the compile command, and then examine the offending line in the .i file. Tom -- Thomas Carlson, DEC C/ DEC C++ carlson@decc.enet.dec.com Digital Equipment Corporation, ZK2-3/N30 110 Spitbrook Rd, Nashua, NH 03062 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: password cracker 1995-05-10 4:00 password cracker system PRIVILEGED account 1995-05-11 4:00 ` Tom Carlson @ 1995-05-12 4:00 ` Mike Iglesias 1995-05-18 4:00 ` Ram Rao 2 siblings, 0 replies; 4+ messages in thread From: Mike Iglesias @ 1995-05-12 4:00 UTC (permalink / raw) In article <3opl6b$8sp@controversy.admin.lsa.umich.edu>, system PRIVILEGED account <root@umaxp1.physics.lsa.umich.edu> wrote: > >Has anyone gotten Crack_4.1 (or any version of crack) to run on OSF version 3.0? Yes. I'm including my patches below. -- Mike Iglesias Internet: iglesias@draco.acs.uci.edu University of California, Irvine phone: (714) 824-6926 Office of Academic Computing FAX: (714) 824-2069 Central 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); } ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: password cracker 1995-05-10 4:00 password cracker system PRIVILEGED account 1995-05-11 4:00 ` Tom Carlson 1995-05-12 4:00 ` Mike Iglesias @ 1995-05-18 4:00 ` Ram Rao 2 siblings, 0 replies; 4+ messages in thread From: Ram Rao @ 1995-05-18 4:00 UTC (permalink / raw) > Has anyone gotten Crack_4.1 (or any version of crack) to run on OSF version > > 3.0? > > When trying to run Crack (which makes itself - no makefile is used), I keep > getting the following compiler errors: > > /usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 254: Syntax Error Ll ^= (S0L)[ *dp STEP]; ---------------------^ I succeeded in getting Crack V4.1f running on my OSF/1 V3.2 system earlier this week. To get it to compile, you need to fix bytesex.c as follows: diff bytesex.c.org bytesex.c 6c6 < long int l; --- > int l; 19d18 < l <<= 32; Replacing the long int by an int and eliminating the left shift statement fixes the broken logic for determining endianism on a 64-bit machine. To get it to run without core dumping, you need to add a #include statement to crack-supp.c: diff crack-supp.c.org crack-supp.c 10a11 > #include <time.h> Good Luck, Ram Rao Digital, Indianapolis ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-05-18 4:00 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1995-05-10 4:00 password cracker system PRIVILEGED account 1995-05-11 4:00 ` Tom Carlson 1995-05-12 4:00 ` Mike Iglesias 1995-05-18 4:00 ` Ram Rao
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox