Problem compiling crack 4.1 on DEC OSF/1 V3.0

Problem compiling crack 4.1 on DEC OSF/1 V3.0

Post by Charlie Byr » Fri, 28 Jul 1995 04:00:00



Trying to get crack 4.1 up on Alpha 3000/300, DEC OSF/1 V3.0 ("Dec Unix"),
me and the install procedure for this thing just
do not seem to be getting along....

cc -O `./bytesex` -c crack-fcrypt.c
/usr/lib/cmplrs/cc/cfe: Error: crack-fcrypt.c, line 254: Syntax Error
            Ll ^= (S0L)[ *dp STEP];
        ---------------------^

Fix/Workaround? Details below...TIA.
==============================================================================
Crack 4.1f RELEASE, The Password Cracker (c) Alec D.E. Muffett, 1992
Invoked as: /usr/local/etc/crack/Crack /etc/passwd
Dictionary Dicts/bigdict.Z intact
Binary directory: /usr/local/etc/crack/generic
( cd ../Sources ; make clean )
rm -f *.o *.u *.a *.pixie *.Addrs *.Counts
rm -f crack-pwc tester bytesex testrule
rm -f speedcrypt speedfcrypt speedxform speedufc
( cd ../Sources ; make crack-pwc.which )
Choosing between Crack.fcrypt and Crack.ufc
((../Scripts/do_ufc && make crack-pwc.ufc) || make crack-pwc.fcrypt)
Looking for UFC-crypt in /usr/local/etc/crack/ufc-crypt
Cannot find /usr/local/etc/crack/ufc-crypt - cannot use UFC-crypt on this
platform
cc -O -c crack-lib.c
cc -O -c crack-glob.c
cc -O -c crack-supp.c
cc -O -c crack-sort.c
cc -O -c bytesex.c
cc -O -o bytesex bytesex.o
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)
cp ../Sources/crack-pwc .
cp: ../Sources/crack-pwc: No such file or directory
*** Exit 1
Stop.
==============================================================================

---
Charlie Byrne * Bigelow Laboratory for Ocean Sciences
McKown Point * West Boothbay Harbor, ME 04575 * (207) 633-9610
Usual disclamers apply.

 
 
 

Problem compiling crack 4.1 on DEC OSF/1 V3.0

Post by Mike Iglesi » Fri, 28 Jul 1995 04:00:00




>Trying to get crack 4.1 up on Alpha 3000/300, DEC OSF/1 V3.0 ("Dec Unix"),
>me and the install procedure for this thing just
>do not seem to be getting along....

Use the patches below to compile crack on your system.

--

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);
  }

 
 
 

1. diffs for Crack 4.1 for DEC OSF/1 ?

I'm searching for diffs for Crack 4.1 to run
on a DEC ALPHA OSF/1 machine using Dec's C-Compiler.
I managed to compile ufc-cryt, put it core dumps
(memory fault) when running Crack.

--

--         Computing Center at the University of Siegen, GERMANY             --
--            Hochschulrechenzentrum der Universitaet Siegen                 --

2. Mounting Sony CDU33a under MAD16 Pro interface?

3. Crack for DEC Alpha OSF/1?

4. Is this in-SANE?

5. Is crack available for the DEC Alpha running OSF/1?

6. Patch Confusion

7. Request: Compiling Crack 4.1 on Solaris

8. mail checker applet in gnome

9. Compiling Crack on OSF/1

10. AMD running on OSF/1 (dec/alpha) version 3.2 run on OSF/1 4.0?

11. Linux olvwm under DEC OSF/1 / DEC UNIX?

12. Tape drive problem for DEC ALPHA running REDHAT 4.1

13. Error on Crack 4.1