File: crackdef.c

package info (click to toggle)
fcrackzip 1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 632 kB
  • sloc: ansic: 2,723; sh: 743; makefile: 121; perl: 81
file content (138 lines) | stat: -rw-r--r-- 3,679 bytes parent folder | download | duplicates (5)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
 * this file is automatically generated from zipcrack.c, do NOT modify
 */

#if 0
#elif defined(x__i386__) || defined(x__i386) || defined(xi386)
# define ARCH_i386 1
# undef METHOD
# define METHOD 1
# undef TARGET_CPU
# define TARGET_CPU 0
# undef USE_MULT_TAB
# undef init_crack_pw
# define init_crack_pw METHOD1_init_crack_pw
# undef crack_pw
# define crack_pw METHOD1_crack_pw
#  if TARGET_CPU==COMPILE_CPU && USE_MULT_TAB
#   define DEFAULT_METHOD 1
#  endif
#  include "zipcrack.c"
# undef METHOD
# define METHOD 2
# undef TARGET_CPU
# define TARGET_CPU 0
# define USE_MULT_TAB 1
# undef init_crack_pw
# define init_crack_pw METHOD2_init_crack_pw
# undef crack_pw
# define crack_pw METHOD2_crack_pw
#  if TARGET_CPU==COMPILE_CPU && USE_MULT_TAB
#   define DEFAULT_METHOD 2
#  endif
#  include "zipcrack.c"
# undef METHOD
# define METHOD 3
# undef TARGET_CPU
# define TARGET_CPU 5
# undef USE_MULT_TAB
# undef init_crack_pw
# define init_crack_pw METHOD3_init_crack_pw
# undef crack_pw
# define crack_pw METHOD3_crack_pw
#  if TARGET_CPU==COMPILE_CPU && USE_MULT_TAB
#   define DEFAULT_METHOD 3
#  endif
#  include "zipcrack.c"
# undef METHOD
# define METHOD 4
# undef TARGET_CPU
# define TARGET_CPU 5
# define USE_MULT_TAB 1
# undef init_crack_pw
# define init_crack_pw METHOD4_init_crack_pw
# undef crack_pw
# define crack_pw METHOD4_crack_pw
#  if TARGET_CPU==COMPILE_CPU && USE_MULT_TAB
#   define DEFAULT_METHOD 4
#  endif
#  include "zipcrack.c"
# undef METHOD
# define METHOD 5
# undef TARGET_CPU
# define TARGET_CPU 6
# undef USE_MULT_TAB
# undef init_crack_pw
# define init_crack_pw METHOD5_init_crack_pw
# undef crack_pw
# define crack_pw METHOD5_crack_pw
#  if TARGET_CPU==COMPILE_CPU && USE_MULT_TAB
#   define DEFAULT_METHOD 5
#  endif
#  include "zipcrack.c"
# undef METHOD
# define METHOD 6
# undef TARGET_CPU
# define TARGET_CPU 6
# define USE_MULT_TAB 1
# undef init_crack_pw
# define init_crack_pw METHOD6_init_crack_pw
# undef crack_pw
# define crack_pw METHOD6_crack_pw
#  if TARGET_CPU==COMPILE_CPU && USE_MULT_TAB
#   define DEFAULT_METHOD 6
#  endif
#  include "zipcrack.c"
# undef ARCH_i386
#elif 1
# undef METHOD
# define METHOD 1
# undef USE_MULT_TAB
# undef init_crack_pw
# define init_crack_pw METHOD1_init_crack_pw
# undef crack_pw
# define crack_pw METHOD1_crack_pw
#  if USE_MULT_TAB
#   define DEFAULT_METHOD 1
#  endif
#  include "zipcrack.c"
# undef METHOD
# define METHOD 2
# define USE_MULT_TAB 1
# undef init_crack_pw
# define init_crack_pw METHOD2_init_crack_pw
# undef crack_pw
# define crack_pw METHOD2_crack_pw
#  if USE_MULT_TAB
#   define DEFAULT_METHOD 2
#  endif
#  include "zipcrack.c"
#else
#warn no architecture compiled in
#endif

#ifndef DEFAULT_METHOD
#define DEFAULT_METHOD 0
#endif

int default_method = DEFAULT_METHOD;

method methods[] = {
#if 0
#elif defined(x__i386__) || defined(x__i386) || defined(xi386)
  { "cpmask", init_cpmask, crack_cpmask, load_img },
  { "zip1, TARGET_CPU=0", METHOD1_init_crack_pw, METHOD1_crack_pw, load_zip },
  { "zip2, TARGET_CPU=0, USE_MULT_TAB", METHOD2_init_crack_pw, METHOD2_crack_pw, load_zip },
  { "zip3, TARGET_CPU=5", METHOD3_init_crack_pw, METHOD3_crack_pw, load_zip },
  { "zip4, TARGET_CPU=5, USE_MULT_TAB", METHOD4_init_crack_pw, METHOD4_crack_pw, load_zip },
  { "zip5, TARGET_CPU=6", METHOD5_init_crack_pw, METHOD5_crack_pw, load_zip },
  { "zip6, TARGET_CPU=6, USE_MULT_TAB", METHOD6_init_crack_pw, METHOD6_crack_pw, load_zip },
#elif 1
  { "cpmask", init_cpmask, crack_cpmask, load_img },
  { "zip1", METHOD1_init_crack_pw, METHOD1_crack_pw, load_zip },
  { "zip2, USE_MULT_TAB", METHOD2_init_crack_pw, METHOD2_crack_pw, load_zip },
#else
#endif
  { 0, 0, 0, 0 }
};