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. **    Killer Cracker v9.11 LTD - Un*x /etc/passwd 'FAST' cracking engine    **
  3. ** ======================================================================== **
  4. **                 Sourcefile: kc.h -- Last Update: 10/07/91                **
  5. ** ======================================================================== **
  6. **           Written By Doctor Dissector, Copyright (C) 1990, 1991          **
  7. ** ======================================================================== **
  8. **                   LIMITED EDITION -- DO NOT DISTRIBUTE                   **
  9. \****************************************************************************/
  10.  
  11. /*=[ License ]==============================================================*/
  12.  
  13. /*
  14. **  Killer Cracker - Version 9.11 LTD
  15. **  Copyright (C) 1991 By Doctor Dissector
  16. **
  17. **  This program is NOT free software BUT may be used without charge or
  18. **  payment in any form IF your copy is a "registered" distributed version.
  19. **  You may modify it as much as you please, however, you MAY NOT re-
  20. **  distribute it, in any shape or for: ie. modified OR unmodified,
  21. **  without the expressed written consent (ie. e-mail) of
  22. **  Doctor Dissector.
  23. **
  24. **  This program was initially distributed in the hope that it will be
  25. **  useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  26. **  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  27. */
  28.  
  29. /*=[ Disclaimer ]===========================================================*/
  30.  
  31. /*
  32. **  The author of this package, Doctor Dissector, will not assume liability
  33. **  for ANY of the effects of the use or distribution of this package.  If
  34. **  you, at ANY time compile or use this package, you will assume full
  35. **  liability for your own actions; Doctor Dissector can neither enforce the
  36. **  lawful use of this package nor your actions before, during, or after
  37. **  exposure to this package.  Doctor Dissector does NOT endorse your unlawful
  38. **  use of this package to appropriate computer accounts not under your lawful
  39. **  ownership.
  40. **
  41. **  The original intent of this package was to prove that Un*x accounts can be
  42. **  easily, efficiently, and effectively cracked utilizing modified DES
  43. **  encryption routines and proper statistical, mathematical, logical, and
  44. **  programming skills.
  45. */
  46.  
  47. /*=[ Copyright ]============================================================*/
  48.  
  49. char kc_h_msg[] = "Source: kc.h, Copyright (C) 1990, 1991 By Doctor Dissector";
  50.  
  51. /*=[ Debug Information ]====================================================*/
  52.  
  53. /*
  54. ** Un-comment this if you are hacking this program and need to see extended
  55. ** information about the program's tested passwords
  56. **
  57. #define DEBUGGING    1
  58. **
  59. */
  60.  
  61. /*=[ Compiler Dependant Defines ]===========================================*/
  62.  
  63. /*
  64. **  The definition of the following commented values are now done
  65. **  automatically through use of "make" and the included Makefile.
  66. **  If you wish to do the definition of the compiler types and
  67. **  operating system types manually, un-comment one of each from
  68. **  each section and compile.
  69. */
  70.  
  71. /*
  72. **  IMPORTANT NOTES: Turbo/Borland C/C++ & Microsoft C
  73. **      -   You MUST also un-comment the NON_NETORDER definition.
  74. **      -   You MUST compile and link KC under the COMPACT MEMORY MODEL
  75. **          or any larger memory model (large, huge).
  76. */
  77.  
  78. /* Compiler types available
  79. **
  80. #define _TURBO      1 (Turbo C, Turbo C++, Borland C++ compilers)
  81. #define _MICROSOFT  1 (Microsoft C compiler)
  82. #define _DOS32BIT   1 (32 Bit MS/PC-DOS compiles, GCC/G++/NDP/etc...)
  83. #define _SYSV       1 (Un*x System V)
  84. #define _BSD        1 (BSD Un*x v4.x, BSD shoot-offs, Ultrix)
  85. #define _STRIPPED   1 (If all else fails)
  86. **
  87. */
  88.  
  89. /* Operating system types available
  90. **
  91. #define _MSDOS      1 (MS/PC-DOS based systems)
  92. #define _UNIX       1 (Un*x based systems)
  93. **
  94. */
  95.  
  96. /*=[ General Definitions ]==================================================*/
  97.  
  98. #define MAX_FILE       256          /* Maximum file/pathname length */
  99. #define MAX_LINE       512          /* Maxmimum /etc/passwd line length */
  100. #define MAX_TAIL       256          /* Maximum command tail length */
  101. #define MAX_WORD        81          /* Maximum word length in wordfile */
  102.  
  103. /*=[ Command Definitions ]==================================================*/
  104.  
  105. #define ERROR_FLAG      -1          /* Some error occured */
  106. #define FORK_FLAG        1          /* Fork process into background */
  107. #define HELP_FLAG        2          /* Display usage information */
  108. #define INACTIVE_FLAG    3          /* Display/save inactive accounts */
  109. #define MAXIMIZE_FLAG    4          /* Maximize system resources */
  110. #define PWFILE_FLAG      5          /* Passwordfile */
  111. #define QUIET_FLAG       6          /* Disply no output */
  112. #define RESTORE_FLAG     7          /* Restore session */
  113. #define SINGLE_FLAG      8          /* Single user(s) wordfile format */
  114. #define STDIN_FLAG       9          /* Stdin wordfile */
  115. #define TEST_FLAG       10          /* Test crypt result */
  116. #define TIMEOUT_FLAG    11          /* Timeout (minutes) */
  117. #define VALIDFILE_FLAG  12          /* Validfile */
  118. #define WORDFILE_FLAG   13          /* Wordfile */
  119.  
  120. /*=[ Structure: cmd ]=======================================================*/
  121.  
  122. struct cmd {
  123.     char *cmd_name;
  124.     int  unique,
  125.          cmd_code;
  126. };
  127.  
  128. /*=[ Variable: cmdtab[] ]===================================================*/
  129.  
  130. struct cmd cmdtab[] = {
  131.     { "?",          1,  HELP_FLAG       },
  132.     { "fork",       1,  FORK_FLAG       },
  133.     { "help",       1,  HELP_FLAG       },
  134.     { "inactive",   1,  INACTIVE_FLAG   },
  135.     { "maximize",   1,  MAXIMIZE_FLAG   },
  136.     { "pwfile",     1,  PWFILE_FLAG     },
  137.     { "quiet",      1,  QUIET_FLAG      },
  138.     { "restore",    1,  RESTORE_FLAG    },
  139.     { "single",     2,  SINGLE_FLAG     },
  140.     { "stdin",      2,  STDIN_FLAG      },
  141.     { "test",       2,  TEST_FLAG       },
  142.     { "timeout",    2,  TIMEOUT_FLAG    },
  143.     { "validfile",  1,  VALIDFILE_FLAG  },
  144.     { "wordfile",   1,  WORDFILE_FLAG   },
  145.     0
  146. };
  147.