* Crack-4 on DEC ALPHA machines @ 1996-09-11 4:00 alan 1996-09-11 4:00 ` Mike Iglesias 0 siblings, 1 reply; 2+ messages in thread From: alan @ 1996-09-11 4:00 UTC (permalink / raw) I assume it is possible to run Crack 4 on DEC alphas? I've tried on several alphas here (DEC 3000, Alpha Server 2100 4/233, Alpha Station 255) all running OSF/1 v3.2 In each case, the system compiles OK, but as soon as I strat it off, the Crack script falls over with a Memory fault. I guess I've got something wrong in conf.h(?), but twiddling with the settings there doesn't get me anywher. Can anyone suggest what I'm doing wrong, please? conf.h ..... /* * This program is copyright Alec Muffett 1991 except for some portions of * code in "crack-fcrypt.c" which are copyright Robert Baldwin, Icarus Sparry * and Alec Muffett. The author(s) disclaims all responsibility or liability * with respect to it's usage or its effect upon hardware or computer * systems, and maintain copyright as set out in the "LICENCE" document which * accompanies distributions of Crack v4.0 and upwards. */ #undef DEVELOPMENT_VERSION /* * define this symbol if you are on a system where you don't have the * strchr() function in your standard library (usually this means you are on * a BSD based system with no System 5isms) but you DO have the equivalent * index() function. */ #define INDEX_NOT_STRCHR /* * define this if you have a smart toupper() and tolower() (a-la ANSI), which * do not generate barf when something which is not a lowercase letter is * uppercased, or vice-versa (a-la K&R). Check your manpage or leave it * undefined */ #undef FAST_TOCASE /* * define this if you are on a Sys V type system with a uname() system call * AND YOU HAVE NO gethostname() - it fakes up a BSD gethostname() so you can * use CRACK_NETWORK; see crack-port.c */ #define CRACK_UNAME /* * define CRACK_DOTFILES if you want to search the first 1Kb segment of users * .plan/.project/.signature files for potential passwords. * * define CRACK_DOTSANE to likewise do (possibly non-portable) sanity testing * on the dotfiles before opening them (check that they are not named pipes, * etc...) */ #define CRACK_DOTFILES #define CRACK_DOTSANE /* * define "COMPRESSION" if you have enabled compression in the Crack * Shellscript * * this is enabled by default if you have /usr/ucb/compress; change the pathname * of the $compress variable in the Crack script if you use another pathname * to get to "compress" and then put the path name of the "pipe to stdout" * version of the compression prog here. */ #define COMPRESSION #define ZCAT "/usr/ucb/zcat" /* as in "zcat Dicts/bigdict.Z" */ #define PCAT "/usr/bin/pcat" /* * define this if you are using fcrypt() - you might not want to if fcrypt() * doesn't work properly */ #define FCRYPT ------------------------------------------------------------------------ Alan M Stanier, Computing Service, Univ of Essex, Colchester CO4 3SQ, UK alan@essex.ac.uk WWW http://www.essex.ac.uk/AMS/Alan.Stanier.html ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Crack-4 on DEC ALPHA machines 1996-09-11 4:00 Crack-4 on DEC ALPHA machines alan @ 1996-09-11 4:00 ` Mike Iglesias 0 siblings, 0 replies; 2+ messages in thread From: Mike Iglesias @ 1996-09-11 4:00 UTC (permalink / raw) In article <515uuj$vou@seralph9.essex.ac.uk>, <alan@essex.ac.uk> wrote: >I assume it is possible to run Crack 4 on DEC alphas? Yes, it is. Use the enclosed patches... -- Mike Iglesias Internet: iglesias@draco.acs.uci.edu University of California, Irvine phone: (714) 824-6926 Office of Academic Computing FAX: (714) 824-2069 *** 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] 2+ messages in thread
end of thread, other threads:[~1996-09-11 4:00 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 1996-09-11 4:00 Crack-4 on DEC ALPHA machines alan 1996-09-11 4:00 ` Mike Iglesias
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox