|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T c
Length: 1805 (0x70d)
Types: TextFile
Names: »crack.h«
└─⟦4f9d7c866⟧ Bits:30007245 EUUGD6: Sikkerheds distributionen
└─⟦this⟧ »./crack/Sources/crack.h«
/*
* This program is copyright Alec Muffett 1991 except for some portions of
* code in "crack-fcrypt.c" which are copyright Robert Baldwin, Icarus Sparry
* and Alec Muffett. The author(s) disclaims all responsibility or liability
* with respect to it's usage or its effect upon hardware or computer
* systems, and maintain copyright as set out in the "LICENCE" document which
* accompanies distributions of Crack v4.0 and upwards.
*/
#include <stdio.h>
#include <ctype.h>
#include <pwd.h>
#include <signal.h>
#include "conf.h"
#define STRINGSIZE 256
#ifdef DEVELOPMENT_VERSION
#define BUILTIN_CLEAR
#undef BRAINDEAD6
#define CRACK_UNAME
#endif
extern void Trim ();
extern char *Reverse ();
extern char *Uppercase ();
extern char *Lowercase ();
extern char *Clone ();
extern char *Mangle ();
extern int gethostname ();
#ifdef FAST_TOCASE
#define CRACK_TOUPPER(x) (toupper(x))
#define CRACK_TOLOWER(x) (tolower(x))
#else
#define CRACK_TOUPPER(x) (islower(x) ? toupper(x) : (x))
#define CRACK_TOLOWER(x) (isupper(x) ? tolower(x) : (x))
#endif
#ifdef FCRYPT
#define crypt(a,b) fcrypt(a,b)
#endif
#ifdef INDEX_NOT_STRCHR
#define strchr(a,b) index(a,b)
#endif
struct USER
{
struct USER *next; /* next users with different salt */
struct USER *across; /* line of users with same salt */
char *filename; /* where we got it from */
char *passwd_txt; /* plaintext of password */
struct passwd passwd; /* ...guess... */
int done; /* bool flag */
};
struct DICT
{
struct DICT *next; /* simple linked list */
char word[1]; /* ...<snigger>... */
};
/* include lyrics of "perfect circle" by R.E.M. at this point */
struct RULE
{
struct RULE *next;
char *rule;
};
#define STRCMP(x,y) ( *(x) == *(y) ? strcmp((x),(y)) : -1 )
#include "crack-glob.h"