home *** CD-ROM | disk | FTP | other *** search
/ The Hacker's Encyclopedia 1998 / hackers_encyclopedia.iso / programs / kc9_src.arj / KC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-10-07  |  6.2 KB  |  147 lines

  1. /****************************************************************************\
  2.  
  3. **    Killer Cracker v9.11 LTD - Un*x /etc/passwd 'FAST' cracking engine    **
  4.  
  5. ** ======================================================================== **
  6.  
  7. **                 Sourcefile: kc.h -- Last Update: 10/07/91                **
  8.  
  9. ** ======================================================================== **
  10.  
  11. **           Written By Doctor Dissector, Copyright (C) 1990, 1991          **
  12.  
  13. ** ======================================================================== **
  14.  
  15. **                   LIMITED EDITION -- DO NOT DISTRIBUTE                   **
  16.  
  17. \****************************************************************************/
  18.  
  19.  
  20.  
  21. /*=[ License ]==============================================================*/
  22.  
  23.  
  24.  
  25. /*
  26.  
  27. **  Killer Cracker - Version 9.11 LTD
  28.  
  29. **  Copyright (C) 1991 By Doctor Dissector
  30.  
  31. **
  32.  
  33. **  This program is NOT free software BUT may be used without charge or
  34.  
  35. **  payment in any form IF your copy is a "registered" distributed version.
  36.  
  37. **  You may modify it as much as you please, however, you MAY NOT re-
  38.  
  39. **  distribute it, in any shape or for: ie. modified OR unmodified,
  40.  
  41. **  without the expressed written consent (ie. e-mail) of
  42.  
  43. **  Doctor Dissector.
  44.  
  45. **
  46.  
  47. **  This program was initially distributed in the hope that it will be
  48.  
  49. **  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  50.  
  51. **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  52.  
  53. */
  54.  
  55.  
  56.  
  57. /*=[ Disclaimer ]===========================================================*/
  58.  
  59.  
  60.  
  61. /*
  62.  
  63. **  The author of this package, Doctor Dissector, will not assume liability
  64.  
  65. **  for ANY of the effects of the use or distribution of this package.  If
  66.  
  67. **  you, at ANY time compile or use this package, you will assume full
  68.  
  69. **  liability for your own actions; Doctor Dissector can neither enforce the
  70.  
  71. **  lawful use of this package nor your actions before, during, or after
  72.  
  73. **  exposure to this package.  Doctor Dissector does NOT endorse your unlawful
  74.  
  75. **  use of this package to appropriate computer accounts not under your lawful
  76.  
  77. **  ownership.
  78.  
  79. **
  80.  
  81. **  The original intent of this package was to prove that Un*x accounts can be
  82.  
  83. **  easily, efficiently, and effectively cracked utilizing modified DES
  84.  
  85. **  encryption routines and proper statistical, mathematical, logical, and
  86.  
  87. **  programming skills.
  88.  
  89. */
  90.  
  91.  
  92.  
  93. /*=[ Copyright ]============================================================*/
  94.  
  95.  
  96.  
  97. char kc_h_msg[] = "Source: kc.h, Copyright (C) 1990, 1991 By Doctor Dissector";
  98.  
  99.  
  100.  
  101. /*=[ Debug Information ]====================================================*/
  102.  
  103.  
  104.  
  105. /*
  106.  
  107. ** Un-comment this if you are hacking this program and need to see extended
  108.  
  109. ** information about the program's tested passwords
  110.  
  111. **
  112.  
  113. #define DEBUGGING    1
  114.  
  115. **
  116.  
  117. */
  118.  
  119.  
  120.  
  121. /*=[ Compiler Dependant Defines ]===========================================*/
  122.  
  123.  
  124.  
  125. /*
  126.  
  127. **  The definition of the following commented values are now done
  128.  
  129. **  automatically through use of "make" and the included Makefile.
  130.  
  131. **  If you wish to do the definition of the compiler types and
  132.  
  133. **  operating system types manually, un-comment one of each from
  134.  
  135. **  each section and compile.
  136.  
  137. */
  138.  
  139.  
  140.  
  141. /*
  142.  
  143. **  IMPORTANT NOTES: Turbo/Borland C/C++ & Microsoft C
  144.  
  145. **      -   You MUST also un-comment the NON_NETORDER definition.
  146.  
  147. **      -   You MUST compile and link KC under the COMPACT MEMORY MODEL
  148.  
  149. **          or any larger memory model (large, huge).
  150.  
  151. */
  152.  
  153.  
  154.  
  155. /* Compiler types available
  156.  
  157. **
  158.  
  159. #define _TURBO      1 (Turbo C, Turbo C++, Borland C++ compilers)
  160.  
  161. #define _MICROSOFT  1 (Microsoft C compiler)
  162.  
  163. #define _DOS32BIT   1 (32 Bit MS/PC-DOS compiles, GCC/G++/NDP/etc...)
  164.  
  165. #define _SYSV       1 (Un*x System V)
  166.  
  167. #define _BSD        1 (BSD Un*x v4.x, BSD shoot-offs, Ultrix)
  168.  
  169. #define _STRIPPED   1 (If all else fails)
  170.  
  171. **
  172.  
  173. */
  174.  
  175.  
  176.  
  177. /* Operating system types available
  178.  
  179. **
  180.  
  181. #define _MSDOS      1 (MS/PC-DOS based systems)
  182.  
  183. #define _UNIX       1 (Un*x based systems)
  184.  
  185. **
  186.  
  187. */
  188.  
  189.  
  190.  
  191. /*=[ General Definitions ]==================================================*/
  192.  
  193.  
  194.  
  195. #define MAX_FILE       256          /* Maximum file/pathname length */
  196.  
  197. #define MAX_LINE       512          /* Maxmimum /etc/passwd line length */
  198.  
  199. #define MAX_TAIL       256          /* Maximum command tail length */
  200.  
  201. #define MAX_WORD        81          /* Maximum word length in wordfile */
  202.  
  203.  
  204.  
  205. /*=[ Command Definitions ]==================================================*/
  206.  
  207.  
  208.  
  209. #define ERROR_FLAG      -1          /* Some error occured */
  210.  
  211. #define FORK_FLAG        1          /* Fork process into background */
  212.  
  213. #define HELP_FLAG        2          /* Display usage information */
  214.  
  215. #define INACTIVE_FLAG    3          /* Display/save inactive accounts */
  216.  
  217. #define MAXIMIZE_FLAG    4          /* Maximize system resources */
  218.  
  219. #define PWFILE_FLAG      5          /* Passwordfile */
  220.  
  221. #define QUIET_FLAG       6          /* Disply no output */
  222.  
  223. #define RESTORE_FLAG     7          /* Restore session */
  224.  
  225. #define SINGLE_FLAG      8          /* Single user(s) wordfile format */
  226.  
  227. #define STDIN_FLAG       9          /* Stdin wordfile */
  228.  
  229. #define TEST_FLAG       10          /* Test crypt result */
  230.  
  231. #define TIMEOUT_FLAG    11          /* Timeout (minutes) */
  232.  
  233. #define VALIDFILE_FLAG  12          /* Validfile */
  234.  
  235. #define WORDFILE_FLAG   13          /* Wordfile */
  236.  
  237.  
  238.  
  239. /*=[ Structure: cmd ]=======================================================*/
  240.  
  241.  
  242.  
  243. struct cmd {
  244.  
  245.     char *cmd_name;
  246.  
  247.     int  unique,
  248.  
  249.          cmd_code;
  250.  
  251. };
  252.  
  253.  
  254.  
  255. /*=[ Variable: cmdtab[] ]===================================================*/
  256.  
  257.  
  258.  
  259. struct cmd cmdtab[] = {
  260.  
  261.     { "?",          1,  HELP_FLAG       },
  262.  
  263.     { "fork",       1,  FORK_FLAG       },
  264.  
  265.     { "help",       1,  HELP_FLAG       },
  266.  
  267.     { "inactive",   1,  INACTIVE_FLAG   },
  268.  
  269.     { "maximize",   1,  MAXIMIZE_FLAG   },
  270.  
  271.     { "pwfile",     1,  PWFILE_FLAG     },
  272.  
  273.     { "quiet",      1,  QUIET_FLAG      },
  274.  
  275.     { "restore",    1,  RESTORE_FLAG    },
  276.  
  277.     { "single",     2,  SINGLE_FLAG     },
  278.  
  279.     { "stdin",      2,  STDIN_FLAG      },
  280.  
  281.     { "test",       2,  TEST_FLAG       },
  282.  
  283.     { "timeout",    2,  TIMEOUT_FLAG    },
  284.  
  285.     { "validfile",  1,  VALIDFILE_FLAG  },
  286.  
  287.     { "wordfile",   1,  WORDFILE_FLAG   },
  288.  
  289.     0
  290.  
  291. };
  292.  
  293.