home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume26 / crack / patch01 next >
Encoding:
Text File  |  1991-11-23  |  8.1 KB  |  287 lines

  1. Newsgroups: comp.sources.misc
  2. From: aem@uk.ac.amber (Alec David Edward Muffett)
  3. Subject:  v26i051:  crack - The Password Cracker, version 4.0a, Patch01
  4. Message-ID: <1991Nov24.050909.5353@sparky.imd.sterling.com>
  5. X-Md4-Signature: aa54ae597617eb0dce6ff71df53368cb
  6. Date: Sun, 24 Nov 1991 05:09:09 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: aem@uk.ac.amber (Alec David Edward Muffett)
  10. Posting-number: Volume 26, Issue 51
  11. Archive-name: crack/patch01
  12. Environment: UNIX
  13. Patch-To: crack: Volume 25, Issue 5-9
  14.  
  15. This is patch number 1 to Crack v4.0a - The Unix Password Cracker.  It
  16. brings the version number up to v4.0b.
  17.  
  18. This patch fixes a number of annoying bugs and incompatibilities for SV
  19. and HP_UX systems, as detailed in the BUGS file.  It also adds a note
  20. regarding use of the Crack dictionary generation language to
  21. "Scripts/dicts.rules" - I suggest that you read this a.s.a.p. 
  22.  
  23. To apply these patches:- 
  24. Extract this message into a file, "cd" to the Crack v4.0a directory, and type:
  25.  
  26.             patch -p1 < filename
  27.  
  28.                         - alec
  29.  
  30. INET: aem@aber.ac.uk      JANET: aem@uk.ac.aber      BITNET: aem%aber@ukacrl
  31. UUCP: ...!mcsun!ukc!aber!aem         ARPA: aem%uk.ac.aber@nsfnet-relay.ac.uk
  32. NAME: Alec David Edward Muffett, Unix Security Guru and avid Whisky Drinker.
  33.  
  34. diff -rc ../crack40a/BUGS ./BUGS
  35. *** ../crack40a/BUGS    Mon Nov 18 10:27:14 1991
  36. --- ./BUGS    Fri Nov  8 10:51:07 1991
  37. ***************
  38. *** 1,11 ****
  39. ! Bugs as of 24th October 1991:-
  40.   
  41. - * Scripts/do_join: have removed the 'spot the short passwd'
  42. - functionality since awk was producing some weird errors to do with not
  43. - having enough fields to printf().  It's being silly, because one of the
  44. - values is undefined (ie: $3 is NULL.  What the hell, it's replicated in
  45. - crack-pwc.c, anyway...  nobody should miss it...
  46.   * Crack: is known to occasionally hang during a "Crack -network" whilst
  47.   rshing from machine to machine on some architectures.  It's a persistent
  48.   problem at some sites, when Crack rsh'es to a particular machine and
  49. --- 1,5 ----
  50. ! Bugs as of 7th November 1991:-
  51.   
  52.   * Crack: is known to occasionally hang during a "Crack -network" whilst
  53.   rshing from machine to machine on some architectures.  It's a persistent
  54.   problem at some sites, when Crack rsh'es to a particular machine and
  55. ***************
  56. *** 14,16 ****
  57. --- 8,21 ----
  58.   FIX: mark machines that hang Crack with the "-f" option in network.conf
  59.   file - then the 'rsh' will be backgrounded and Crack will continue to
  60.   the next machine.
  61. + * crack-pwc.c: had sprintf("string", args...) instead of sprintf(buffer,
  62. + "string", args...) which mucked up the 'nastygrams'...  Fixed in 4.0b
  63. + * Scripts/RCrack: Hewlett-Packards return HP_UX not HP-UX, or vice
  64. + versa.  I now match HP*UX in order to bypass this.  Fixed in 4.0b
  65. + * Sources/crack.h: defined gethostname() as "char *" not "int", and
  66. + clashed with correct declaration in "crack-port.c".  Fixed in 4.0b.
  67. + * Sources/speeds.c: downgraded "#elif" into multiple "#ifdef"s - v4.0b
  68. diff -rc ../crack40a/Crack ./Crack
  69. *** ../crack40a/Crack    Mon Nov 18 11:37:10 1991
  70. --- ./Crack    Thu Nov  7 14:41:44 1991
  71. ***************
  72. *** 49,55 ****
  73.   ############### FROM HERE ON IN IT'S ALL MY FAULT ###############
  74.   ###
  75.   
  76. ! version="4.0a RELEASE"            # version number
  77.   pwl=""                    # user specified
  78.   domail=""                # user specified
  79.   fgnd=""                    # user specified
  80. --- 49,55 ----
  81.   ############### FROM HERE ON IN IT'S ALL MY FAULT ###############
  82.   ###
  83.   
  84. ! version="4.0b RELEASE"            # version number
  85.   pwl=""                    # user specified
  86.   domail=""                # user specified
  87.   fgnd=""                    # user specified
  88. Common subdirectories: ../crack40a/DictSrc and ./DictSrc
  89. Common subdirectories: ../crack40a/Dicts and ./Dicts
  90. Common subdirectories: ../crack40a/Docs and ./Docs
  91. Common subdirectories: ../crack40a/Runtime and ./Runtime
  92. Common subdirectories: ../crack40a/Scripts and ./Scripts
  93. Common subdirectories: ../crack40a/Sources and ./Sources
  94. diff -rc ../crack40a/DictSrc/bad_pws.dat ./DictSrc/bad_pws.dat
  95. *** ../crack40a/DictSrc/bad_pws.dat    Mon Nov 18 11:37:17 1991
  96. --- ./DictSrc/bad_pws.dat    Thu Nov  7 15:25:01 1991
  97. ***************
  98. *** 1,3 ****
  99. --- 1,7 ----
  100. + animal
  101. + creator
  102. + mac
  103. + shark
  104.   Bongpoo
  105.   0
  106.   1
  107. diff -rc ../crack40a/Scripts/RCrack ./Scripts/RCrack
  108. *** ../crack40a/Scripts/RCrack    Mon Nov 18 11:37:25 1991
  109. --- ./Scripts/RCrack    Thu Nov  7 14:41:45 1991
  110. ***************
  111. *** 23,29 ****
  112.   ###
  113.   
  114.   case $machine in
  115. !     "HP_UX")            # Hewlett Packard boxen
  116.           remote_shell="remsh"
  117.           ;;
  118.   #     "XENIX"|"Xenix")        # Just a suggestion...
  119. --- 23,29 ----
  120.   ###
  121.   
  122.   case $machine in
  123. !     "HP*UX")            # Hewlett Packard boxen
  124.           remote_shell="remsh"
  125.           ;;
  126.   #     "XENIX"|"Xenix")        # Just a suggestion...
  127. diff -rc ../crack40a/Scripts/dicts.rules ./Scripts/dicts.rules
  128. *** ../crack40a/Scripts/dicts.rules    Mon Nov 18 10:27:36 1991
  129. --- ./Scripts/dicts.rules    Thu Nov  7 16:11:34 1991
  130. ***************
  131. *** 18,23 ****
  132. --- 18,27 ----
  133.   # xnm    = extract substring from position n for m characters
  134.   # u    = force word uppercase
  135.   ###
  136. + # A lot of people haven't realised that the above is a complete
  137. + # description language; ie: if you want to create a dictionary of short
  138. + # words with "123" appended, use "<6l$1$2$3" - see ?
  139. + ###
  140.   # Here we go...
  141.   ###
  142.   l
  143. diff -rc ../crack40a/Sources/crack-pwc.c ./Sources/crack-pwc.c
  144. *** ../crack40a/Sources/crack-pwc.c    Mon Nov 18 11:38:37 1991
  145. --- ./Sources/crack-pwc.c    Thu Nov  7 14:55:23 1991
  146. ***************
  147. *** 18,24 ****
  148.    * will.
  149.    */
  150.   
  151. ! char version[] = "4.0a";        /* version of prog */
  152.   char runtime[] = "Runtime";
  153.   char feedback_string[] = "!fb!";
  154.   char rulefile[] = "Scripts/dicts.rules";
  155. --- 18,24 ----
  156.    * will.
  157.    */
  158.   
  159. ! char version[] = "4.0b";        /* version of prog */
  160.   char runtime[] = "Runtime";
  161.   char feedback_string[] = "!fb!";
  162.   char rulefile[] = "Scripts/dicts.rules";
  163. ***************
  164. *** 106,112 ****
  165.       {
  166.       char dobuff[STRINGSIZE];
  167.   
  168. !     sprintf ("%s %s", nastygram, eptr -> passwd.pw_name);
  169.       system (dobuff);
  170.       }
  171.   }
  172. --- 106,112 ----
  173.       {
  174.       char dobuff[STRINGSIZE];
  175.   
  176. !     sprintf (dobuff, "%s %s", nastygram, eptr -> passwd.pw_name);
  177.       system (dobuff);
  178.       }
  179.   }
  180. ***************
  181. *** 118,124 ****
  182.       /* bury magnets */
  183.       /* swallow the rapture */
  184.       /* let's gather feathers */
  185. !     /* don't fall on me - from 'Fall in Me' by R.E.M. */
  186.       Log ("Caught a SIGTERM! Commiting suicide...\n");
  187.       Log ("<argh!>\n");
  188.       sync ();
  189. --- 118,124 ----
  190.       /* bury magnets */
  191.       /* swallow the rapture */
  192.       /* let's gather feathers */
  193. !     /* don't fall on me - from 'Fall on Me' by R.E.M. */
  194.       Log ("Caught a SIGTERM! Commiting suicide...\n");
  195.       Log ("<argh!>\n");
  196.       sync ();
  197. diff -rc ../crack40a/Sources/crack.h ./Sources/crack.h
  198. *** ../crack40a/Sources/crack.h    Mon Nov 18 11:37:52 1991
  199. --- ./Sources/crack.h    Fri Nov  8 10:36:39 1991
  200. ***************
  201. *** 17,23 ****
  202.   extern char *Lowercase ();
  203.   extern char *Clone ();
  204.   extern char *Mangle ();
  205. ! extern char *gethostname ();
  206.   
  207.   #ifdef FAST_TOCASE
  208.   #define toupper(x)     _toupper(x)
  209. --- 17,23 ----
  210.   extern char *Lowercase ();
  211.   extern char *Clone ();
  212.   extern char *Mangle ();
  213. ! extern int gethostname ();
  214.   
  215.   #ifdef FAST_TOCASE
  216.   #define toupper(x)     _toupper(x)
  217. diff -rc ../crack40a/Sources/speeds.c ./Sources/speeds.c
  218. *** ../crack40a/Sources/speeds.c    Mon Nov 18 10:28:06 1991
  219. --- ./Sources/speeds.c    Fri Nov  8 10:42:10 1991
  220. ***************
  221. *** 21,33 ****
  222.   {
  223.       printf ("Did %f %s()s per second.\n",
  224.           ((float) cnt) / ((float) ITIME),
  225. ! #if defined(T1)
  226.           "fcrypt"
  227. ! #elif defined(T2)
  228.           "XForm"
  229.   #else
  230.           "crypt"
  231.   #endif
  232.       );
  233.       exit (0);
  234.   }
  235. --- 21,35 ----
  236.   {
  237.       printf ("Did %f %s()s per second.\n",
  238.           ((float) cnt) / ((float) ITIME),
  239. ! #ifdef T1
  240.           "fcrypt"
  241. ! #else
  242. ! #ifdef T2
  243.           "XForm"
  244.   #else
  245.           "crypt"
  246.   #endif
  247. + #endif
  248.       );
  249.       exit (0);
  250.   }
  251. ***************
  252. *** 51,62 ****
  253.   
  254.       for (cnt = 0;; cnt++)
  255.       {
  256. ! #if defined(T1)
  257.       fcrypt ("fredfred", "eek");
  258. ! #elif defined(T2)
  259.       XForm (quarters, 0);
  260.   #else
  261.       crypt ("fredfred", "eek");
  262.   #endif
  263.       }
  264.   }
  265. --- 53,66 ----
  266.   
  267.       for (cnt = 0;; cnt++)
  268.       {
  269. ! #ifdef T1
  270.       fcrypt ("fredfred", "eek");
  271. ! #else
  272. ! #ifdef T2
  273.       XForm (quarters, 0);
  274.   #else
  275.       crypt ("fredfred", "eek");
  276. + #endif
  277.   #endif
  278.       }
  279.   }
  280.  
  281. exit 0 # Just in case...
  282.