Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Password cracker on OSF/1
@ 1994-02-08 13:55 Christian Kupferschmid
  1994-02-09 18:00 ` Ajay Shekhawat
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Kupferschmid @ 1994-02-08 13:55 UTC (permalink / raw)



--
School of Engineering, Switzerland
Information Center

HTL Brugg-Windisch               |RFC-822:        kupfer@htl-bw.ch
Kupferschmid Christian           |DECnet :        47931259::kupfer
CH-5200 Brugg-Windisch           |

Whenever I tell you something this might be the truth, 
but sometimes it's not!
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Hi folks

I try to build the password cracker V4.1 on my DEC3000/200 with OSF/1
V 1.3A. Make runs fine but when I run the cracker I get an segmentation
fault.

Any suggestions?

Thanks

Chris


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Password cracker on OSF/1
  1994-02-08 13:55 Password cracker on OSF/1 Christian Kupferschmid
@ 1994-02-09 18:00 ` Ajay Shekhawat
  1994-02-10  6:14   ` Ajay Shekhawat
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ajay Shekhawat @ 1994-02-09 18:00 UTC (permalink / raw)


Christian Kupferschmid (kupfer@htl-bw.ch) wrote:
: Hi folks
: I try to build the password cracker V4.1 on my DEC3000/200 with OSF/1
: V 1.3A. Make runs fine but when I run the cracker I get an segmentation
: fault.
: Any suggestions?
: Thanks
: Chris

I'm having the same problem. The WWW server at DEC says that crack 4.1 has
been ported to DEC machines, and is available at ftp.cert.org; but I've
been trying to access that machine for a couple of days now, and it
seems to be down. 
Is there any other site which carries a port of crack4.1 to the Alpha?

Ajay
--
ajay@cs.Buffalo.EDU



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Password cracker on OSF/1
  1994-02-09 18:00 ` Ajay Shekhawat
@ 1994-02-10  6:14   ` Ajay Shekhawat
  1994-02-10 14:49     ` Brad Daniels
  1994-02-11 18:03   ` Christian Kupferschmid
  1994-02-11 23:20   ` Mike Iglesias
  2 siblings, 1 reply; 6+ messages in thread
From: Ajay Shekhawat @ 1994-02-10  6:14 UTC (permalink / raw)


I wrote:
: Christian Kupferschmid (kupfer@htl-bw.ch) wrote:
: : Hi folks
: : I try to build the password cracker V4.1 on my DEC3000/200 with OSF/1
: : V 1.3A. Make runs fine but when I run the cracker I get an segmentation
: : fault.
: : Any suggestions?
: : Thanks
: : Chris

: I'm having the same problem. The WWW server at DEC says that crack 4.1 has
: been ported to DEC machines, and is available at ftp.cert.org; but I've
: been trying to access that machine for a couple of days now, and it
: seems to be down. 
: Is there any other site which carries a port of crack4.1 to the Alpha?

With the help of dbx, I was able to fix the problems with Crack 4.1f.
If you want to compile and run crack, do the following:

First, make sure you have the following flags while compiling: 

    -DFDES_8BYTE -DLITTLE_ENDIAN -Dalpha


(I know, I know: bytesex shold take care of it, but it doesn't.. )
(The -Dalpha is for the next step)

Next, in ufc-crypt.h, add the following lines (just like Cray):

#ifdef alpha
typedef unsigned long ufc_long
typedef unsigned long long64
#define _UFC_64_
#endif


Finally, in Sources/crack-supp.c, change line 50 to:
    printf("pwc: %-19s ", ctime(&t));


I think these are the only changes I made (but I've been wrong before!)

Ajay

--
ajay@cs.Buffalo.EDU




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Password cracker on OSF/1
  1994-02-10  6:14   ` Ajay Shekhawat
@ 1994-02-10 14:49     ` Brad Daniels
  0 siblings, 0 replies; 6+ messages in thread
From: Brad Daniels @ 1994-02-10 14:49 UTC (permalink / raw)


In article <CKzvzp.72J@acsu.buffalo.edu>,
Ajay Shekhawat <ajay@cs.Buffalo.EDU> wrote:
...
>First, make sure you have the following flags while compiling: 
>
>    -DFDES_8BYTE -DLITTLE_ENDIAN -Dalpha

Just a general suggestion:  Why not use the predefined constant __alpha
instead of -Dalpha.  Just change your #ifdefs to use __alpha instead
of alpha, and you don't need it on the command line.  Since you're adding
other stuff anyway it doesn't matter much anyway, but it's a useful
way to do things in general.

- Brad
-------------------------------------------------------------------------------
+ Brad Daniels                  | "There's only one sweeping generalization   +
+ Biles and Associates          |  which is completely true, and this is it." +
+ These are my views, not B&A's |                              - Me (1994)    +
-------------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Password cracker on OSF/1
  1994-02-09 18:00 ` Ajay Shekhawat
  1994-02-10  6:14   ` Ajay Shekhawat
@ 1994-02-11 18:03   ` Christian Kupferschmid
  1994-02-11 23:20   ` Mike Iglesias
  2 siblings, 0 replies; 6+ messages in thread
From: Christian Kupferschmid @ 1994-02-11 18:03 UTC (permalink / raw)



I fixed the Cracker 4.1 on my DEC3000/300 with OSF/1 V1.3A.

In the file ./Sources/crack-supp.c in the procedure Log (...)
is a Line looking like

printf ("pwc: %-15.15s ", ctime(&t) + 4);


It seems that OSF/1 doesn't like the '+ 4' at the end.
So I changed the line to

printf ("pwc: %-19.19s ", ctime(&t));

And it worked.



Regard,

Chris

--
School of Engineering, Switzerland
Information Center

HTL Brugg-Windisch               |RFC-822:        kupfer@htl-bw.ch
Kupferschmid Christian           |DECnet :        47931259::kupfer
CH-5200 Brugg-Windisch           |

Whenever I tell you something this might be the truth, 
but sometimes it's not!


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Password cracker on OSF/1
  1994-02-09 18:00 ` Ajay Shekhawat
  1994-02-10  6:14   ` Ajay Shekhawat
  1994-02-11 18:03   ` Christian Kupferschmid
@ 1994-02-11 23:20   ` Mike Iglesias
  2 siblings, 0 replies; 6+ messages in thread
From: Mike Iglesias @ 1994-02-11 23:20 UTC (permalink / raw)


In article <CKyy19.68y@acsu.buffalo.edu>,
Ajay Shekhawat <ajay@cs.Buffalo.EDU> wrote:
>I'm having the same problem. The WWW server at DEC says that crack 4.1 has
>been ported to DEC machines, and is available at ftp.cert.org; but I've
>been trying to access that machine for a couple of days now, and it
>seems to be down. 
>Is there any other site which carries a port of crack4.1 to the Alpha?

Enclosed below are the patches I used to get Crack working on the
Alpha.  The patches fix bytesex.c so it can figure out the endian
of the system.

-- 
Mike Iglesias                        Internet:    iglesias@draco.acs.uci.edu
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);
  }


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1994-02-11 23:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-02-08 13:55 Password cracker on OSF/1 Christian Kupferschmid
1994-02-09 18:00 ` Ajay Shekhawat
1994-02-10  6:14   ` Ajay Shekhawat
1994-02-10 14:49     ` Brad Daniels
1994-02-11 18:03   ` Christian Kupferschmid
1994-02-11 23:20   ` Mike Iglesias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox