* Re: Running Crack
[not found] <4i3qg9$ppu@csu-b.csuohio.edu>
@ 1996-03-20 5:00 ` Christian Koenigseder
1996-03-20 5:00 ` Mike Iglesias
0 siblings, 1 reply; 2+ messages in thread
From: Christian Koenigseder @ 1996-03-20 5:00 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=US-ASCII 12: 31:25 GMT, Size: 888 bytes --]
Additionally, following tasks are necessary to get "Crack" on an Alpha-CPU running:
1.) In the ./Sources directory edit the file "Makefile":
replace the
old line: CFLAGS= -O
with
new line: CFLAGS= -taso -xtaso -O
2.) Remove all occurences of "long" in the file ./Sources/bytesex.c
3.) In the ./Sources directory edit the file "crack-fcrypt.c":
3.a) Before the line:
#include "crack.h"
insert following line:
#pragma pointer_size short
3.b) Remove all occurences of "long" in the file ./Sources/crack-fcrypt.c
This should be enough, to get it running.
--
Christian Koenigseder UNIX-System & Network Manager
Umweltschutzreferat LHM Tel/Fax: +49 89 233-23619/-23442
Bayerstr. 28a E-mail: koenigse@umw.cube.net
80335 Muenchen, Germany Public PGP-Key on request
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Running Crack
1996-03-20 5:00 ` Running Crack Christian Koenigseder
@ 1996-03-20 5:00 ` Mike Iglesias
0 siblings, 0 replies; 2+ messages in thread
From: Mike Iglesias @ 1996-03-20 5:00 UTC (permalink / raw)
In article <r3ag1bomiw.fsf@ux0umw50.umw.lhm-net.de>,
Christian Koenigseder <koenigse@umw.cube.net> wrote:
>
>Additionally, following tasks are necessary to get "Crack" on an Alpha-CPU running:
>
> [snip]
>
>This should be enough, to get it running.
Apply the patches below and you don't need to do the edits.
--
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-03-20 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <4i3qg9$ppu@csu-b.csuohio.edu>
1996-03-20 5:00 ` Running Crack Christian Koenigseder
1996-03-20 5: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