Crack 4.1 on an Alpha AXP?

Crack 4.1 on an Alpha AXP?

Post by Kurt Reisl » Thu, 17 Mar 1994 04:20:44



Has anyone gotten crack 4.1 running on a DEC Alpha running OSF/1? I was
able to get the ufc-crypt portion compiled and running (the tests are
most impressive), but it appears that there are either some 32 bit vs 64
bit irregularities in crack itself, or some problems in the scripts. I
figured I would ask the community before I waded into it myself.

Thanks in advance.

--
                Kurt Reisler (UNIX SIG Chair, DECUS US Chapter)
                  Captain, UNISIG International Luge Team

             Are creative spellings like a patentable life form?

 
 
 

Crack 4.1 on an Alpha AXP?

Post by Joseph F. Fo » Thu, 17 Mar 1994 05:11:04


: Has anyone gotten crack 4.1 running on a DEC Alpha running OSF/1? I was
: able to get the ufc-crypt portion compiled and running (the tests are
: most impressive), but it appears that there are either some 32 bit vs 64
: bit irregularities in crack itself, or some problems in the scripts. I
: figured I would ask the community before I waded into it myself.

: Thanks in advance.

: --
:                 Kurt Reisler (UNIX SIG Chair, DECUS US Chapter)
:                 Captain, UNISIG International Luge Team

:            Are creative spellings like a patentable life form?

 
 
 

Crack 4.1 on an Alpha AXP?

Post by nie.. » Thu, 17 Mar 1994 05:39:46


There was a "fix" posted some time back but while it compiled fine,
I couldn't get it to run properly.  Has anyone?

--
Michael Nieves

 
 
 

Crack 4.1 on an Alpha AXP?

Post by Mike Iglesi » Sun, 20 Mar 1994 06:01:53



>There was a "fix" posted some time back but while it compiled fine,
>I couldn't get it to run properly.  Has anyone?

The patches below are what I used to get Crack working on an Alpha
running OSF 1.2.  It still works under 1.3.

--

University of California, Irvine     phone:       (714) 856-6926
Office of Academic Computing         FAX:         (714) 725-2069
Distributed 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);
  }

 
 
 

1. RedHat 4.1 on AXP

Ok.. i have installed and maintained several systems with linux boxes
before now.. i am very 'competent' with Intel.. but AXP is giving me
problems.

Or rather, the HOWTO on AXP booting is not very clear.. it mentions
writing a raw image to disk for milo, but then speaks of loadlin on the
same disk.. which can't possibly be.
Its the UMB version, the universal, to tell the truth it is not mine,
someone elses who i fool-hardily offered to help set up. Doh! (_8(|)

I understand that with AXP you have to boot MILO first, then you can
boot the kernel and install it etc.. but the documentation leaves a lot
to be desired (IMO).. its great for labelling steps with the ARC NT
menus.. very step by step and thorugh.. yet at the same time say
'assuming you have disk with linload etc'.. its not very clear.. you
don't know where you stand =(

(Mainly because i know little of the ARC NT stuff and milo)

Help plese!

Later

Richy Boy

2. Help w/ HorizSync & VertRefresh for Aamazing Monitor

3. Error on Crack 4.1

4. Boot fails: ran out of input data

5. RE Crack 4.1 on Next

6. Unix filename question

7. Crack 4.1 - doesnt crypt properly on NeXTs?

8. New version of Slackware?

9. Difference from Crack 4.1 to 5.0

10. **Help With Crack 4.1!!!

11. Crack 4.1 on Digital Unix

12. shadow and Crack 4.1

13. shadmrg for crack 4.1 for AIX