-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal.h
64 lines (47 loc) · 1.57 KB
/
global.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
Cracking Engine
Copyright (C) Bernardo Reino (aka Lepton) (lepton@runbox.com)
20021119
*/
#ifndef __XTN_GLOBAL__
#define __XTN_GLOBAL__
#include <stdio.h>
#include <time.h>
#include "xtn_def.h"
extern BYTE K_CHARSET[BYTE_MAX], *K_ACTIVE;
extern BYTE K_LENSET[MAX_PASS_LEN];
/* used for regex enumeration (default character set, taken from K_CHARSET) */
extern BYTE K_SYMBOL[BYTE_MAX];
struct regex_t {
struct regex_t *next;
int wild;
BYTE symbol[BYTE_MAX];
};
/* parsed regex, used for enumeration */
extern struct regex_t *K_REGEX;
extern int RXMinLength, RXWildCount;
extern int K_CHARSET_LEN, K_LENSET_LEN;
extern int verbose;
typedef struct _t_PasswordElement {
char * login;
CODE_BLOCK data[MAX_CODE_LEN];
struct _t_PasswordElement * next;
} PasswordElement;
extern PasswordElement PasswordList[BYTE_MAX];
extern unsigned long long PasswordCount; /* who knows? :) */
extern int PasswordLeft;
extern FILE *pot;
extern int pot_file, verbose;
extern void print_key(FILE *f, BYTE *K, unsigned int K_Len);
extern void KEY_text(BYTE *stream, char *dst, unsigned int len);
extern int KEY_find(char *K, int K_Len, CODE_BLOCK_PTR H);
extern int KEY_login(char *passwd, int Len, int xtd);
extern int KEY_word(char *passwd, int Len, int xtd);
extern int KEY_cmp(char *passwd, int Len);
extern void KEY_zero(BYTE *K, unsigned int Len);
extern signed int KEY_next(BYTE *K, unsigned int Len);
extern void KEY_rand(BYTE *K, unsigned int Len);
#ifdef __MINGW_H
void gettimeofday(struct timeval* p, void* tz /* IGNORED */);
#endif
#endif