* Crack 4.1 for DEC OSF 3.0?
@ 1994-09-16 16:31 Grant Taylor
1994-09-19 15:01 ` Michel Kern
[not found] ` <35pkod$sr7@osfb.aber.ac.uk>
0 siblings, 2 replies; 12+ messages in thread
From: Grant Taylor @ 1994-09-16 16:31 UTC (permalink / raw)
I tried to run crack on our new 3.0 Alpha farm, and the darned thing
core dumps right off.
My fix, if anyone cares to know, was to comment out the printf of the
time() call in line 54 of crack-supp.c. My intuition tells me I just
won't know how long crack took...
--
-grant
Grant Taylor - gtaylor@cs.tufts.edu - http://www.tufts.edu/~gtaylor/
aspiring unix guru, double e, and very overloaded student ;)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-16 16:31 Crack 4.1 for DEC OSF 3.0? Grant Taylor
@ 1994-09-19 15:01 ` Michel Kern
1994-09-19 17:18 ` Castor Fu
[not found] ` <35pkod$sr7@osfb.aber.ac.uk>
1 sibling, 1 reply; 12+ messages in thread
From: Michel Kern @ 1994-09-19 15:01 UTC (permalink / raw)
Grant Taylor (gtaylor@god.ext.tufts.edu) wrote:
: I tried to run crack on our new 3.0 Alpha farm, and the darned thing
: core dumps right off.
: My fix, if anyone cares to know, was to comment out the printf of the
: time() call in line 54 of crack-supp.c. My intuition tells me I just
: won't know how long crack took...
: -grant
Had the same problem, and I changed the line:
printf ("pwc: %-15.15s ", ctime (&t) + 4);
to
printf ("pwc: %-19.19s ", ctime (&t));
Seems to have fixed it, and I stiil get the time :)
I also changed the Log function to use varargs, becasue I thought that
was what was casung the crash. Seems not.
BTW, this is under OSf 1.3
Michel
--
Michel KERN | Tel. (33) (1) 39 63 58 41
INRIA Rocquencourt | E-mail: Michel.Kern@inria.fr
78153 Le Chesnay Cedex |
FRANCE |
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-19 15:01 ` Michel Kern
@ 1994-09-19 17:18 ` Castor Fu
0 siblings, 0 replies; 12+ messages in thread
From: Castor Fu @ 1994-09-19 17:18 UTC (permalink / raw)
I looked at crack 4.1. I haven't compiled it, but there is a clear
bug in this routine.
time_t in DEC OSF/1 is an int, not a long. This is probably
the source of the problem. I wouldn't be surprised if changing
t to a time_t would fix your problem.
-castor
p.s. If you had included <time.h>, cc probably would have told you this.
>>>>> "Michel" == Michel Kern <kern@pluto.inria.fr> writes:
Michel> Grant Taylor (gtaylor@god.ext.tufts.edu) wrote: : I tried
Michel> to run crack on our new 3.0 Alpha farm, and the darned
Michel> thing : core dumps right off.
Michel> : My fix, if anyone cares to know, was to comment out the
Michel> printf of the : time() call in line 54 of crack-supp.c.
Michel> My intuition tells me I just : won't know how long crack
Michel> took...
Michel> : -grant
Michel> Had the same problem, and I changed the line: printf
Michel> ("pwc: %-15.15s ", ctime (&t) + 4); to printf ("pwc:
Michel> %-19.19s ", ctime (&t));
Michel> Seems to have fixed it, and I stiil get the time :)
Michel> I also changed the Log function to use varargs, becasue I
Michel> thought that was what was casung the crash. Seems not.
Michel> BTW, this is under OSf 1.3
--
Castor Fu, (foo@leland.stanford.edu)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
[not found] ` <35rspo$47h@news.delphi.com>
@ 1994-09-22 14:27 ` Doug McPherson
1994-09-22 21:43 ` Charlie Brown
1994-09-23 10:34 ` Michel Kern
0 siblings, 2 replies; 12+ messages in thread
From: Doug McPherson @ 1994-09-22 14:27 UTC (permalink / raw)
In article <35rspo$47h@news.delphi.com>, dougm@delphi.com(Doug McPherson) writes:
Path: news.delphi.com!mcdoug!doug
From: dougm@delphi.com(Doug McPherson)
Newsgroups: comp.security.unix,comp.unix.osf.osf1
Subject: Re: Crack 4.1 for DEC OSF 3.0?
Date: 22 Sep 1994 12:20:08 GMT
Organization: Delphi Internet Services
Lines: 13
OK. I found the sources to crack 4.1 on ftp.cert.org. Thanks.
Hints on bugs in the code in this thread notwithstanding, I cannot get the
sources to build on my system.
Primarily, it complains about not being able to find "ufc-crypt" on my system
(DEC 3000/300, OSF/1 v2.1).
The make file says it "...cannot use UFC-crypt on this platform" and proceeds
to use Crack.fcrypt.
At that point, I get a hail of compiler syntax errors... Bummer.
I'm not a particularly brilliant C programmer (truth hurts!), so I was hoping
that someone could help me figger out what's up with this.
Output from failed make attached, for interested parties.
<begin attachment>
Choosing between Crack.fcrypt and Crack.ufc
((../Scripts/do_ufc && make crack-pwc.ufc) || make crack-pwc.fcrypt)
Looking for UFC-crypt in ../ufc-crypt
Cannot find ../ufc-crypt - cannot use UFC-crypt on this platform
cc -O `./bytesex` -c crack-fcrypt.c
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 254: Syntax Error
Ll ^= (S0L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 256: Syntax Error
Ll ^= (S1L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 258: Syntax Error
Ll ^= (S2L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 260: Syntax Error
Ll ^= (S3L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 262: Syntax Error
Ll ^= (S4L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 264: Syntax Error
Ll ^= (S5L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 266: Syntax Error
Ll ^= (S6L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 268: Syntax Error
Ll ^= (S7L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 289: Syntax Error
Rl ^= (S0L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 291: Syntax Error
Rl ^= (S1L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 293: Syntax Error
Rl ^= (S2L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 295: Syntax Error
Rl ^= (S3L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 297: Syntax Error
Rl ^= (S4L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 299: Syntax Error
Rl ^= (S5L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 301: Syntax Error
Rl ^= (S6L)[ *dp STEP];
---------------------^
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 303: Syntax Error
Rl ^= (S7L)[ *dp STEP];
---------------------^
*** Exit 1
Stop.
*** Exit 1 (ignored)
<end attachment>
-
+----------------------------+---------------------------------------------+
| Doug McPherson | |
| Delphi Internet Services | This space waiting for a suitably erudite |
| 1030 Massachusetts Avenue | slogan... |
| Cambridge, MA 02138 | |
+----------------------------+---------------------------------------------+
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-22 14:27 ` Doug McPherson
@ 1994-09-22 21:43 ` Charlie Brown
1994-09-25 22:11 ` Szymon Sokol
1994-09-23 10:34 ` Michel Kern
1 sibling, 1 reply; 12+ messages in thread
From: Charlie Brown @ 1994-09-22 21:43 UTC (permalink / raw)
Doug McPherson spewed:
: OK. I found the sources to crack 4.1 on ftp.cert.org. Thanks.
: Hints on bugs in the code in this thread notwithstanding, I cannot get the
: sources to build on my system.
: Primarily, it complains about not being able to find "ufc-crypt" on my system
: (DEC 3000/300, OSF/1 v2.1).
You have to get the ufc-crypt package, first. Archie to find the nearest
location. However, I have heard that the libdes by Eric somebody is
actually much faster. Good Luck.
Chuck
--
"When masturbation's lost it's fun, | Krah6781@Nova.GMI.Edu is: Charlie Brown
you're f*cking lazy" -- Green Day | Intern Electrical Engineer for
All opinions are strictly my own, | OTC Division, Owatonna, MN
so Take Off, eh! | a Division of Sealed Power Corp.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-22 14:27 ` Doug McPherson
1994-09-22 21:43 ` Charlie Brown
@ 1994-09-23 10:34 ` Michel Kern
1994-09-23 11:50 ` Alec Muffett
` (2 more replies)
1 sibling, 3 replies; 12+ messages in thread
From: Michel Kern @ 1994-09-23 10:34 UTC (permalink / raw)
Doug McPherson (doug@mcdoug.NOT.SET) wrote:
[deleted]
: The make file says it "...cannot use UFC-crypt on this platform" and proceeds
: to use Crack.fcrypt.
That's all right, you don't *need* UFC crypt.
: At that point, I get a hail of compiler syntax errors... Bummer.
[deleted]
: <begin attachment>
[Output frpom make deleted]
: <end attachment>
The problem is in bytesex.c, which for some reasons cannot figure out
that the machien is little endian (I would think it has to do with
64bit-ism :)
My kludge was to add
puts ("-DLITTLE_ENDIAN");
before the exit(0) call.
It works, but can anybody provide an explanation, and a proper fix ?
Thanks,
Michel
--
Michel KERN | Tel. (33) (1) 39 63 58 41
INRIA Rocquencourt | E-mail: Michel.Kern@inria.fr
78153 Le Chesnay Cedex |
FRANCE |
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-23 10:34 ` Michel Kern
@ 1994-09-23 11:50 ` Alec Muffett
1994-09-23 16:06 ` Xiang Tu
1994-09-24 5:51 ` Mike Iglesias
1994-09-23 16:33 ` Paul S. Sears
1994-09-24 16:57 ` Xiang Tu
2 siblings, 2 replies; 12+ messages in thread
From: Alec Muffett @ 1994-09-23 11:50 UTC (permalink / raw)
In article h02@news-rocq.inria.fr, kern@pluto.inria.fr (Michel Kern) writes:
>Doug McPherson (doug@mcdoug.NOT.SET) wrote:
>My kludge was to add
>puts ("-DLITTLE_ENDIAN");
>before the exit(0) call.
>
>It works, but can anybody provide an explanation, and a proper fix ?
I would, but I don't have an Alpha to play with 8-(
---
Alec Muffett (A Goret is for life, not just for Christmas)
Sun Microsystems
European Network Security Group
(speaking for himself, not his employers)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-23 11:50 ` Alec Muffett
@ 1994-09-23 16:06 ` Xiang Tu
1994-09-24 5:51 ` Mike Iglesias
1 sibling, 0 replies; 12+ messages in thread
From: Xiang Tu @ 1994-09-23 16:06 UTC (permalink / raw)
In <35ufe2$ka7@uk-usenet.uk.sun.com> alecm@coyote.uk.sun.com (Alec Muffett) writes:
>In article h02@news-rocq.inria.fr, kern@pluto.inria.fr (Michel Kern) writes:
>>Doug McPherson (doug@mcdoug.NOT.SET) wrote:
>>My kludge was to add
>>puts ("-DLITTLE_ENDIAN");
>>before the exit(0) call.
>>
>>It works, but can anybody provide an explanation, and a proper fix ?
>I would, but I don't have an Alpha to play with 8-(
where can I find the crack executables for dec/osf ?
Xiang Tu
>---
>Alec Muffett (A Goret is for life, not just for Christmas)
>Sun Microsystems
>European Network Security Group
>(speaking for himself, not his employers)
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-23 10:34 ` Michel Kern
1994-09-23 11:50 ` Alec Muffett
@ 1994-09-23 16:33 ` Paul S. Sears
1994-09-24 16:57 ` Xiang Tu
2 siblings, 0 replies; 12+ messages in thread
From: Paul S. Sears @ 1994-09-23 16:33 UTC (permalink / raw)
In article <35uavo$h02@news-rocq.inria.fr> kern@pluto.inria.fr (Michel Kern)
writes:
#Doug McPherson (doug@mcdoug.NOT.SET) wrote:
#
#[deleted]
#
#: The make file says it "...cannot use UFC-crypt on this platform" and
proceeds
#: to use Crack.fcrypt.
#
#That's all right, you don't *need* UFC crypt.
#
#: At that point, I get a hail of compiler syntax errors... Bummer.
#
#[deleted]
#: <begin attachment>
#
#[Output frpom make deleted]
#
#: <end attachment>
#
#The problem is in bytesex.c, which for some reasons cannot figure out
#that the machien is little endian (I would think it has to do with
#64bit-ism :)
#
#My kludge was to add
#puts ("-DLITTLE_ENDIAN");
#before the exit(0) call.
#
#It works, but can anybody provide an explanation, and a proper fix ?
#
#Thanks,
#
#
#Michel
#
#--
#Michel KERN | Tel. (33) (1) 39 63 58 41
#INRIA Rocquencourt | E-mail: Michel.Kern@inria.fr
#78153 Le Chesnay Cedex |
#FRANCE |
Just for a point of info - I added Michel's fix and here are my crypt rates:
tester 1000
frxWbx4IRuBBA
Doing 1000 fcrypts()
Fri Sep 23 11:07:11 1994
Fri Sep 23 11:07:11 1994
speedcrypt
Running for 10 seconds of virtual time ...
Did 93.300000 crypt()s per second.
speedfcrypt
Running for 10 seconds of virtual time ...
Did 2231.900000 fcrypt()s per second.
speedxform
Running for 10 seconds of virtual time ...
Did 2581.200000 XForm()s per second.
speedufc
Running for 10 seconds of virtual time ...
Did 5450.500000 fcrypt()s per second.
This is on the following hardware: OSF1 V1.3 112 alpha
--
Paul S. Sears * sears@uh.edu (NeXT Mail OK)
The University of Houston * suggestions@tree.egr.uh.edu (NeXT
Engineering Computing Center * comments, complaints, questions)
NeXT System Administration * DoD#1967 '83 NightHawk 650SC
>>> SSI Diving Certification #755020059 <<<
"Programming is like sex: One mistake and you support it a lifetime."
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-23 11:50 ` Alec Muffett
1994-09-23 16:06 ` Xiang Tu
@ 1994-09-24 5:51 ` Mike Iglesias
1 sibling, 0 replies; 12+ messages in thread
From: Mike Iglesias @ 1994-09-24 5:51 UTC (permalink / raw)
In article <35ufe2$ka7@uk-usenet.uk.sun.com>,
Alec Muffett <alecm@coyote.uk.sun.com> wrote:
>I would, but I don't have an Alpha to play with 8-(
The patches at the end of this message make Crack work, including fixing
bytesex. I fixed it so it would work; there may be better ways to fix
it but it works on the systems I tried it on (Suns, Ultrix, OSF/1).
--
Mike Iglesias Internet: iglesias@draco.acs.uci.edu
University of California, Irvine phone: (714) 856-6926
Office of Academic Computing FAX: (714) 725-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] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-23 10:34 ` Michel Kern
1994-09-23 11:50 ` Alec Muffett
1994-09-23 16:33 ` Paul S. Sears
@ 1994-09-24 16:57 ` Xiang Tu
2 siblings, 0 replies; 12+ messages in thread
From: Xiang Tu @ 1994-09-24 16:57 UTC (permalink / raw)
In <35uavo$h02@news-rocq.inria.fr> kern@pluto.inria.fr (Michel Kern) writes:
>Doug McPherson (doug@mcdoug.NOT.SET) wrote:
>[deleted]
>The problem is in bytesex.c, which for some reasons cannot figure out
>that the machien is little endian (I would think it has to do with
>64bit-ism :)
>My kludge was to add
>puts ("-DLITTLE_ENDIAN");
>before the exit(0) call.
>It works, but can anybody provide an explanation, and a proper fix ?
bytesex.c definitely has problems, however, even after the
problem was fixed, i still couldn't get crack to compile on
my system....
Xiang Tu
>Thanks,
>Michel
>--
>Michel KERN | Tel. (33) (1) 39 63 58 41
>INRIA Rocquencourt | E-mail: Michel.Kern@inria.fr
>78153 Le Chesnay Cedex |
>FRANCE |
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Crack 4.1 for DEC OSF 3.0?
1994-09-22 21:43 ` Charlie Brown
@ 1994-09-25 22:11 ` Szymon Sokol
0 siblings, 0 replies; 12+ messages in thread
From: Szymon Sokol @ 1994-09-25 22:11 UTC (permalink / raw)
Charlie Brown (krah6781@gmi.edu) wrote:
: Doug McPherson spewed:
: : OK. I found the sources to crack 4.1 on ftp.cert.org. Thanks.
: : Hints on bugs in the code in this thread notwithstanding, I cannot get the
: : sources to build on my system.
: : Primarily, it complains about not being able to find "ufc-crypt" on my system
: : (DEC 3000/300, OSF/1 v2.1).
: You have to get the ufc-crypt package, first. Archie to find the nearest
: location. However, I have heard that the libdes by Eric somebody is
: actually much faster. Good Luck.
libdes is by Eric Young, and it is faster on some machines; on some others
not. On our DECsystem5000 running Ultrix 4.2 UFC was by 10% faster than libdes.
On a SPARCserver 690 with ROSS HyperSPARC, libdes was twice as fast as UFC.
I do not have a machine running OFS/1 to test. YMMV.
--
Szymon Sokol -- Network Manager
U U M M M M University of Mining and Metallurgy, Computer Center
U U MM MM MM MM ave. Mickiewicza 30, 30-059 Krakow, POLAND
U U M M M M M M M M TEL. +48 12 338100 EXT. 2885 FAX +48 12 338907
UUUUU M M M M M M finger szymon@galaxy.uci.agh.edu.pl for PGP key
WWW page: http://www.uci.agh.edu.pl/~szymon/
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~1994-09-25 22:11 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-16 16:31 Crack 4.1 for DEC OSF 3.0? Grant Taylor
1994-09-19 15:01 ` Michel Kern
1994-09-19 17:18 ` Castor Fu
[not found] ` <35pkod$sr7@osfb.aber.ac.uk>
[not found] ` <35r91n$t92@rosebud.sdsc.edu>
[not found] ` <35rspo$47h@news.delphi.com>
1994-09-22 14:27 ` Doug McPherson
1994-09-22 21:43 ` Charlie Brown
1994-09-25 22:11 ` Szymon Sokol
1994-09-23 10:34 ` Michel Kern
1994-09-23 11:50 ` Alec Muffett
1994-09-23 16:06 ` Xiang Tu
1994-09-24 5:51 ` Mike Iglesias
1994-09-23 16:33 ` Paul S. Sears
1994-09-24 16:57 ` Xiang Tu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox