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

  1. /****************************************************************************\
  2. **        Password Preprocesser v2.00 - Password Cracker Guess Mutator      **
  3. ** ======================================================================== **
  4. **                Sourcefile: pwp.h -- Last Update: 09/20/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. ** Password Preprocesser - Version 2.00
  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 pwp_h_msg[] = "Source: pwp.h, Copyright (C) 1990, 1991 By Doctor Dissector";
  50.  
  51. /*=[ General Definitions ]==================================================*/
  52.  
  53. #define MAX_FILE          256       /* Maximum filename/pathname length */
  54. #define MAX_LINE          512       /* Maximum length of /etc/passwd lines */
  55. #define MAX_TAIL          256       /* Maximum argument tail length */
  56. #define MAX_XCHAR          20       /* Maximum amount of xlate characters */
  57. #define MAX_WORD           81       /* Maximum word length */
  58.  
  59. /*=[ Command Definitions ]==================================================*/
  60.  
  61. #define ERROR_FLAG         -1       /* Command error */
  62. #define DOUBLE_FLAG        10
  63. #define GECOS_FLAG         20       /* Use GECOS fields */
  64. #define HELP_FLAG          30       /* Help/Display usage */
  65. #define INCLUDE_FLAG       40       /* Include original words */
  66. #define KC_FLAG            50       /* Using KC9 format */
  67. #define LOGINS_FLAG        60       /* Use login fields */
  68. #define LOWERCASE_FLAG     70       /* All lowercase */
  69. #define LOWREVERSE_FLAG    80       /* Lowercase & reverse */
  70. #define MINLENGTH_FLAG     90       /* Minimum lengths */
  71. #define NONALPHA_FLAG     100       /* Non-alphabetic characters */
  72. #define NOVOWELS_FLAG     110       /* No vowels */
  73. #define PREFIXES_FLAG     120       /* Prepend characters */
  74. #define REVERSE_FLAG      130       /* Reverse */
  75. #define TRANSLATE_FLAG    140       /* Translate chars */
  76. #define SUFFIXES_FLAG     150       /* Append characters */
  77. #define UPCHAR_FLAG       160       /* Make a char uppercase */
  78. #define UPLAST_FLAG       170       /* Make last char uppercase */
  79. #define UPPERCASE_FLAG    180       /* All uppercase */
  80. #define UPREVERSE_FLAG    190       /* Uppercase & reverse */
  81.  
  82. /*=[ Structure: cmd ]=======================================================*/
  83.  
  84. struct cmd {
  85.     char *cmd_name;
  86.     int  unique,
  87.          cmd_code;
  88. };
  89.  
  90. /*=[ Variable: struct cmd cmdtab[] ]========================================*/
  91.  
  92. struct cmd cmdtab[] = {
  93.     { "?",          1,  HELP_FLAG       },
  94.     { "double",     1,  DOUBLE_FLAG     },
  95.     { "gecos",      1,  GECOS_FLAG      },
  96.     { "help",       1,  HELP_FLAG       },
  97.     { "include",    1,  INCLUDE_FLAG    },
  98.     { "kc",         1,  KC_FLAG         },
  99.     { "logins",     3,  LOGINS_FLAG     },
  100.     { "lowercase",  4,  LOWERCASE_FLAG  },
  101.     { "lowreverse", 4,  LOWREVERSE_FLAG },
  102.     { "minlength",  1,  MINLENGTH_FLAG  },
  103.     { "nonalpha",   3,  NONALPHA_FLAG   },
  104.     { "novowels",   3,  NOVOWELS_FLAG   },
  105.     { "prefixes",   1,  PREFIXES_FLAG   },
  106.     { "reverse",    1,  REVERSE_FLAG    },
  107.     { "suffixes",   1,  SUFFIXES_FLAG   },
  108.     { "translate",  1,  TRANSLATE_FLAG  },
  109.     { "upchar",     3,  UPCHAR_FLAG     },
  110.     { "uplast",     3,  UPLAST_FLAG     },
  111.     { "uppercase",  3,  UPPERCASE_FLAG  },
  112.     { "upreverse",  3,  UPREVERSE_FLAG  },
  113.     0
  114. };
  115.