-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
dynamic_preloads.c
3525 lines (3416 loc) · 220 KB
/
dynamic_preloads.c
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* This software was written by Jim Fougeron jfoug AT cox dot net
* in 2009-2012. No copyright is claimed, and the software is hereby
* placed in the public domain. In case this attempt to disclaim
* copyright and place the software in the public domain is deemed
* null and void, then the software is Copyright (c) 2009-2012 Jim Fougeron
* and it is hereby released to the general public under the following
* terms:
*
* This software may be modified, redistributed, and used for any
* purpose, in source and binary forms, with or without modification.
*
* Generic 'scriptable' hash cracker for JtR
*
* Preloaded types dynamic_0 to dynamic_999 are 'reserved' types.
* They are loaded from this file. If someone tryes to build a 'custom'
* type in their john.ini file using one of those, john will abort
* the run.
*
* Renamed and changed from md5_gen* to dynamic*. We handle MD5 and SHA1
* at the present time. More crypt types 'may' be added later.
* Added SHA2 (SHA224, SHA256, SHA384, SHA512), GOST, Whirlpool crypt types.
* Whirlpool use oSSSL if OPENSSL_VERSION_NUMBER >= 0x10000000, otherwise use sph_* code.
*/
#include <string.h>
#if AC_BUILT
#include "autoconfig.h"
#endif
#include "arch.h"
#if defined(SIMD_COEF_32) && !ARCH_LITTLE_ENDIAN
#undef SIMD_COEF_32
#undef SIMD_COEF_64
#undef SIMD_PARA_MD5
#undef SIMD_PARA_MD4
#undef SIMD_PARA_SHA1
#undef SIMD_PARA_SHA256
#undef SIMD_PARA_SHA512
#define BITS ARCH_BITS_STR
#endif
#if !FAST_FORMATS_OMP
#ifdef _OPENMP
#define FORCE_THREAD_MD5_body
#endif
#undef _OPENMP
#endif
#include "misc.h"
#include "common.h"
#include "formats.h"
#include "md5.h"
#include "dynamic.h"
#include "options.h"
#include "config.h"
#ifndef DYNAMIC_DISABLED
// This set of defines will turn on testing of the MAX_LENGTH hashes. Some of them can cause changes in
// the self test speeds. Thus, we can turn them on, to make sure that the formats ARE handling max length
// passwords properly, but then later compile differently and turn them off, so that the ST speeds are not
// shown slower than they were on prior builds. To remove the max length tests from the self tests, simply
// comment out the #define TEST_MAX_LENGTH_DYNA line.
//#define TEST_MAX_LENGTH_DYNA
#ifdef TEST_MAX_LENGTH_DYNA
#define MTL(a,b,c) a,b,
#else
#define MTL(a,b,c)
#endif
//
// HERE is the 'official' list of dynamic_#) builtin's to John.
//
//dynamic_0 --> md5($p)
//dynamic_1 --> md5($p.$s) (joomla)
//dynamic_2 --> md5(md5($p))
//dynamic_3 --> md5(md5(md5($p)))
//dynamic_4 --> md5($s.$p) (osCommerce MD5 2 byte salt)
//dynamic_5 --> md5($s.$p.$s)
//dynamic_6 --> md5(md5($p).$s)
// REMOVED! DEPRICATED //dynamic_7 --> md5(md5($p).$s) vBulletin (fixed 3 byte salt, colon not valid as field sep, since all chars from 0x20 to 0x7E are in the salt)
//dynamic_8 --> md5(md5($s).$p)
//dynamic_9 --> md5($s.md5($p))
//dynamic_10 --> md5($s.md5($s.$p))
//dynamic_11 --> md5($s.md5($p.$s))
//dynamic_12 --> md5(md5($s).md5($p)) (IPB)
//dynamic_13 --> md5(md5($p).md5($s)) (phpFox v3)
//dynamic_14 --> md5($s.md5($p).$s)
//dynamic_15 --> md5($u.md5($p).$s)
//dynamic_16 --> md5(md5(md5($p).$s).$s2)
//dynamic_17 --> phpass ($P$ or $H$) // phpass OR phpbb (or WordPress, etc). Should handle all conforming formats
//dynamic_18 --> md5($s.Y.$p.\xF7.$s) //(Post.Office MD5) Does not workin SSE2, uses ONLY x86 md5 calls.
//dynamic_19 --> Cisco PIX (MD5)
//dynamic_20 --> Cisco ASA (MD5 salted)
//dynamic_21 --> HTTP Digest Access Auth
//dynamic_22 --> md5(sha1($p))
//dynamic_23 --> sha1(md5($p)) // requires a 40 byte hex hash
//dynamic_24 --> sha1($p.$s) // requires a 40 byte hex hash
//dynamic_25 --> sha1($s.$p) // requires a 40 byte hex hash
//dynamic_26 --> sha1($p) // MGF_RAW_SHA1_INPUT
// REMOVED! DEPRICATED //dynamic_27 --> FreeBSD MD5
// REMOVED! DEPRICATED //dynamic_28 --> Apache MD5
//dynamic_29 --> md5(utf16($p)) // raw-md5-unicode
//dynamic_30 --> md4($p) // raw-md4
//dynamic_31 --> md4($s.$p)
//dynamic_32 --> md4($p.$s)
//dynamic_33 --> md4(utf16($p)) // NT
//dynamic_34 --> md5(md4($p))
//dynamic_35 -->sha1(uc($u).:.$p) (ManGOS)
//dynamic_36 -->sha1($u.:.$p) (ManGOS2)
//dynamic_37 -->sha1(lc($u).$p) (SMF)
//dynamic_38 -->sha1($s.sha1($s.sha1($p))) (Wolt3BB, OpenCart)
//dynamic_39 -->md5($s.pad16($p)) (Net-md5 passed password, long salts)
//dynamic_40 -->sha1($s.pad20($p)) (Net-sha1 passed password, long salts)
// Try to group sha224 here (from dyna-50 to dyna-59)
//dynamic_50 -->sha224($p)
//dynamic_51 -->sha224($s.$p)
//dynamic_52 -->sha224($p.$s)
//dynamic_53 -->sha224(sha224($p))
//dynamic_54 -->sha224(sha224_raw($p))
//dynamic_55 -->sha224(sha224($p).$s)
//dynamic_56 -->sha224($s.sha224($p))
//dynamic_57 -->sha224(sha224($s).sha224($p))
//dynamic_58 -->sha224(sha224($p).sha224($p))
// Try to group sha256 here (from dyna-60 to dyna-69)
//dynamic_60 -->sha256($p)
//dynamic_61 -->sha256($s.$p)
//dynamic_62 -->sha256($p.$s)
//dynamic_63 -->sha256(sha256($p))
//dynamic_64 -->sha256(sha256_raw($p))
//dynamic_65 -->sha256(sha256($p).$s)
//dynamic_66 -->sha256($s.sha256($p))
//dynamic_67 -->sha256(sha256($s).sha256($p))
//dynamic_68 -->sha256(sha256($p).sha256($p))
// All other LARGE hash types will have same elements as those listed above. BUT we only include the hash($p) for documentation
//dynamic_70 -->sha384($p)
//dynamic_80 -->sha512($p)
//dynamic_90 -->GOST($p)
//dynamic_100 -->WHIRLPOOL($p)
//dynamic_110 -->Tiger($p)
//dynamic_120 -->RIPEMD128($p)
//dynamic_130 -->RIPEMD160($p)
//dynamic_140 -->RIPEMD256($p)
//dynamic_150 -->RIPEMD320($p)
//dynamic_160 -->HAVAL128_3($p)
//dynamic_170 -->HAVAL128_4($p)
//dynamic_180 -->HAVAL128_5($p)
//dynamic_190 -->HAVAL160_3($p)
//dynamic_200 -->HAVAL160_4($p)
//dynamic_210 -->HAVAL160_5($p)
//dynamic_220 -->HAVAL192_3($p)
//dynamic_230 -->HAVAL192_4($p)
//dynamic_240 -->HAVAL192_5($p)
//dynamic_250 -->HAVAL224_3($p)
//dynamic_260 -->HAVAL224_4($p)
//dynamic_270 -->HAVAL224_5($p)
//dynamic_280 -->HAVAL256_3($p)
//dynamic_290 -->HAVAL256_4($p)
//dynamic_300 -->HAVAL256_5($p)
//dynamic_310 -->MD2($p)
//dynamic_320 -->PANAMA($p)
//dynamic_330 -->SKEIN224($p)
//dynamic_340 -->SKEIN256($p)
//dynamic_350 -->SKEIN384($p)
//dynamic_360 -->SKEIN512($p)
//dynamic_370 -->SHA3_224($p)
//dynamic_380 -->SHA3_256($p)
//dynamic_390 -->SHA3_384($p)
//dynamic_400 -->SHA3_512($p)
//dynamic_410 -->KECCAK_256($p)
//dynamic_420 -->KECCAK_512($p)
//dynamic_430 -->KECCAK_224($p)
//dynamic_440 -->KECCAK_384($p)
//dynamic_450 -->SM3($p)
// LARGE_HASH_EDIT_POINT
#define DYNA_PRE_DEFINE_LARGE_HASH(H,N,HS) \
static DYNAMIC_primitive_funcp _Funcs_##N##0[] = { DynamicFunc__##H##_crypt_input1_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##1[] = { DynamicFunc__clean_input, DynamicFunc__append_salt, DynamicFunc__append_keys, DynamicFunc__##H##_crypt_input1_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##2[] = { DynamicFunc__clean_input, DynamicFunc__append_keys, DynamicFunc__append_salt, DynamicFunc__##H##_crypt_input1_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##3[] = { DynamicFunc__##H##_crypt_input1_overwrite_input2, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##4[] = { DynamicFunc__LargeHash_OUTMode_raw, DynamicFunc__##H##_crypt_input1_overwrite_input2, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##5[] = { DynamicFunc__set_input_len_##HS , DynamicFunc__append_salt, DynamicFunc__##H##_crypt_input1_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##6[] = { DynamicFunc__clean_input2, DynamicFunc__append_salt2, DynamicFunc__append_input2_from_input, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##7[] = { DynamicFunc__clean_input2_kwik, DynamicFunc__append_salt2, DynamicFunc__append_input2_from_input, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##8[] = { DynamicFunc__clean_input2_kwik, DynamicFunc__##H##_crypt_input1_append_input2, DynamicFunc__append_input2_from_input2, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL };
#define DYNA_PRE_DEFINE_LARGE_HASH_SKIP_78(H,N,HS) \
static DYNAMIC_primitive_funcp _Funcs_##N##0[] = { DynamicFunc__##H##_crypt_input1_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##1[] = { DynamicFunc__clean_input, DynamicFunc__append_salt, DynamicFunc__append_keys, DynamicFunc__##H##_crypt_input1_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##2[] = { DynamicFunc__clean_input, DynamicFunc__append_keys, DynamicFunc__append_salt, DynamicFunc__##H##_crypt_input1_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##3[] = { DynamicFunc__##H##_crypt_input1_overwrite_input2, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##4[] = { DynamicFunc__LargeHash_OUTMode_raw, DynamicFunc__##H##_crypt_input1_overwrite_input2, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##5[] = { DynamicFunc__set_input_len_##HS , DynamicFunc__append_salt, DynamicFunc__##H##_crypt_input1_to_output1_FINAL, NULL }; \
static DYNAMIC_primitive_funcp _Funcs_##N##6[] = { DynamicFunc__clean_input2, DynamicFunc__append_salt2, DynamicFunc__append_input2_from_input, DynamicFunc__##H##_crypt_input2_to_output1_FINAL, NULL };
static DYNAMIC_primitive_funcp _Funcs_0[] =
{
//MGF_KEYS_INPUT
//MGF_SOURCE (v9 format+)
DynamicFunc__crypt_md5,
NULL
};
static struct fmt_tests _Preloads_0[] =
{
{"$dynamic_0$5a105e8b9d40e1329780d62ea2265d8a","test1"},
{"$dynamic_0$098f6bcd4621d373cade4e832627b4f6","test"},
{"$dynamic_0$378e2c4a07968da2eca692320136433d","thatsworking"},
{"$dynamic_0$8ad8757baa8564dc136c1e07507f4a98","test3"},
// These next 2 do slow down self tests, so (by as much as 20%), so they are commented out, but can be uncommented
// to validate that these max length hashes DO not cause the format to fail to work. They MUST be able to be
// successfully processed with no errors. But can be commented out later, to keep same test speeds.
// to turn on these 'max length' tests, just rebuild with -DDEBUG
#ifdef DEBUG
{"$dynamic_0$c9ccf168914a1bcfc3229f1948e67da0","1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_0$57edf4a22be3c955ac49da2e2107b67a","12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
#endif
{NULL}
};
// dynamic_1 Joomla md5($p.$s)
static DYNAMIC_primitive_funcp _Funcs_1[] =
{
DynamicFunc__clean_input,
DynamicFunc__append_keys,
DynamicFunc__append_salt,
DynamicFunc__crypt_md5,
NULL
};
static struct fmt_tests _Preloads_1[] =
{
{"$dynamic_1$ed52af63d8ecf0c682442dfef5f36391$1aDNNojYGSc7pSzcdxKxhbqvLtEe4deG","test1"},
{"$dynamic_1$4fa1e9d54d89bfbe48b4c0f0ca0a3756$laxcaXPjgcdKdKEbkX1SIjHKm0gfYt1c","thatsworking"},
{"$dynamic_1$82568eeaa1fcf299662ccd59d8a12f54$BdWwFsbGtXPGc0H1TBxCrn0GasyAlJBJ","test3"},
#ifdef DEBUG
// commented out to keep speed test 'same'. Uncomment to make sure max lengths work, then recomment back in.
{"$dynamic_1$ff979803ae8048aced292752c8c2cb03$12345678901234567890123456789012", "12345678901234567890123"},
#ifndef SIMD_COEF_32
{"$dynamic_1$2554e084ca33c249ae7105c6482dda60$12345678901234567890123456789012", "123456789012345678901234567890123456789012345678"},
#endif
#endif
{NULL}
};
// dynamic_2 md5(md5($p))
static DYNAMIC_primitive_funcp _Funcs_2[] =
{
//MGF_KEYS_INPUT
//MGF_SET_INP2LEN32
DynamicFunc__crypt_md5,
DynamicFunc__overwrite_from_last_output_to_input2_as_base16_no_size_fix,
#if !ARCH_LITTLE_ENDIAN
// Not sure WHY this is needed in BE systems, BUT it is???
// it does do a memset on last part of buffer, but 'why' is that needed???
// we should have a fixed length of 32 bytes set, so not sure why we need
// to continue to clear on these formats.
DynamicFunc__set_input2_len_32_cleartop,
#endif
DynamicFunc__crypt_md5_in2_to_out1,
NULL
};
static struct fmt_tests _Preloads_2[] =
{
{"$dynamic_2$418d89a45edadb8ce4da17e07f72536c","test1"},
{"$dynamic_2$ccd3c4231a072b5e13856a2059d04fad","thatsworking"},
{"$dynamic_2$9992295627e7e7162bdf77f14734acf8","test3"},
{"$dynamic_2$74be16979710d4c4e7c6647856088456",""},
#ifdef DEBUG
{"$dynamic_2$4da0b552b078998f671795b925aed4ae","1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_2$c2c683fad194ae92af02c98519b24e9f","12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
#endif
{NULL}
};
// dynamic_3 md5(md5(md5($p)))
static DYNAMIC_primitive_funcp _Funcs_3[] =
{
//MGF_KEYS_INPUT
//MGF_SET_INP2LEN32
DynamicFunc__crypt_md5,
DynamicFunc__overwrite_from_last_output_to_input2_as_base16_no_size_fix,
#if !ARCH_LITTLE_ENDIAN
DynamicFunc__set_input2_len_32_cleartop,
#endif
DynamicFunc__crypt2_md5,
DynamicFunc__overwrite_from_last_output2_as_base16_no_size_fix,
#if !ARCH_LITTLE_ENDIAN
DynamicFunc__set_input2_len_32_cleartop,
#endif
DynamicFunc__crypt_md5_in2_to_out1,
NULL
};
static struct fmt_tests _Preloads_3[] =
{
{"$dynamic_3$964c02612b2a1013ed26d46ba9a73e74","test1"},
{"$dynamic_3$5d7e6330f69548797c07d97c915690fe","thatsworking"},
{"$dynamic_3$2e54db8c72b312007f3f228d9d4dd34d","test3"},
#ifdef DEBUG
{"$dynamic_3$7f1e5f4cace82433c8d63a19e1b2c413","1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_3$6129e5eb9f595f8661b889d6d95085e5","12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
#endif
{NULL}
};
//dynamic_4 --> md5($s.$p)
static DYNAMIC_primitive_funcp _Funcs_4[] =
{
//MGF_SALTED
DynamicFunc__clean_input,
DynamicFunc__append_salt,
DynamicFunc__append_keys,
DynamicFunc__crypt_md5,
NULL
};
static struct fmt_tests _Preloads_4[] =
{
{"$dynamic_4$c02e8eef3eaa1a813c2ff87c1780f9ed$123456","test1"},
{"$dynamic_4$4a2a1b013da3cda7f7e0625cf3dc3f4c$1234","thatsworking"},
{"$dynamic_4$3a032e36a9609df6411b8004070431d3$aaaaa","test3"},
#ifdef DEBUG
{"$dynamic_4$2cec94d4cfdbd3494174e0dc6c089690$123456789012345678901234","1234567890123456789012345678901"},
#ifndef SIMD_COEF_32
{"$dynamic_4$43801689631a0113fcb5d3cfaad0431f$123456789012345678901234","12345678901234567890123456789012345678901234567890123456"},
#endif
#endif
{NULL}
};
//dynamic_5 --> md5($s.$p.$s)
static DYNAMIC_primitive_funcp _Funcs_5[] =
{
//MGF_SALTED
DynamicFunc__clean_input,
DynamicFunc__append_salt,
DynamicFunc__append_keys,
DynamicFunc__append_salt,
DynamicFunc__crypt_md5,
NULL
};
static struct fmt_tests _Preloads_5[] =
{
{"$dynamic_5$c1003cd39cb5523dd0923a94ab15a3c7$123456","test1"},
{"$dynamic_5$c1c8618abfc7bdbc4a3c49c2c2c48f82$1234","thatsworking"},
{"$dynamic_5$e7222e806a8ce5efa6d48acb3aa56dc2$aaaaa","test3"},
#ifdef DEBUG
{"$dynamic_5$6a322a856f03abd780a9c6766a03eb79$123456789012","1234567890123456789012345678901"},
#ifndef SIMD_COEF_32
{"$dynamic_5$10c50d85674ff20ca34f582894bc688d$123456789012","12345678901234567890123456789012345678901234567890123456"},
#endif
#endif
{NULL}
};
//dynamic_6 --> md5(md5($p).$s)
static DYNAMIC_primitive_funcp _Funcs_6[] =
{
//MGF_KEYS_BASE16_IN1_MD5
#if ARCH_LITTLE_ENDIAN
DynamicFunc__set_input_len_32_cleartop,
DynamicFunc__append_salt,
DynamicFunc__crypt_md5,
#else
DynamicFunc__clean_input2,
DynamicFunc__append_input2_from_input,
DynamicFunc__append_salt2,
DynamicFunc__crypt_md5_in2_to_out1,
#endif
NULL
};
static struct fmt_tests _Preloads_6[] =
{
{"$dynamic_6$3a9ae23758f05da1fe539e55a096b03b$S111XB","test1"},
{"$dynamic_6$9694d706d1992abf04344c1e7da1c5d3$T &222","thatsworking"},
{"$dynamic_6$b7a7f0c374d73fac422bb01f07f5a9d4$lxxxl","test3"},
{"$dynamic_6$9164fe53be481f811f15efd769aaf0f7$aReallyLongSaltHere","test3"},
#ifdef DEBUG
{"$dynamic_6$22fb37a13d47d420b73cb89773764be2$12345678901234567890123", "1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_6$2099aa2c138eb97713e790b6c49012e5$12345678901234567890123", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
#endif
{NULL}
};
#if 0
//dynamic_7 --> md5(md5($p).$s) vBulletin (forced 3 byte salt, valid chars from 0x20 to 0x7E)
static DYNAMIC_primitive_funcp _Funcs_7[] =
{
//MGF_KEYS_BASE16_IN1_MD5
#if ARCH_LITTLE_ENDIAN
DynamicFunc__set_input_len_32_cleartop,
DynamicFunc__append_salt,
DynamicFunc__crypt_md5,
NULL
#else
DynamicFunc__clean_input2,
DynamicFunc__append_input2_from_input,
DynamicFunc__append_salt2,
DynamicFunc__crypt_md5_in2_to_out1,
NULL
#endif
};
static struct fmt_tests _Preloads_7[] =
{
{"$dynamic_7$daa61d77e218e42060c2fa198ac1feaf$SXB","test1"},
{"$dynamic_7$de56b00bb15d6db79204bd44383469bc$T &","thatsworking"},
{"$dynamic_7$fb685c6f469f6e549c85e4c1fb5a65a6$\\H:","test3"},
{NULL}
};
#endif
//dynamic_8 --> md5(md5($s).$p)
static DYNAMIC_primitive_funcp _Funcs_8[] =
{
//MGF_SALT_AS_HEX
DynamicFunc__clean_input,
DynamicFunc__append_salt,
DynamicFunc__append_keys,
DynamicFunc__crypt_md5,
NULL
};
static struct fmt_tests _Preloads_8[] =
{
{"$dynamic_8$534c2fb38e757d9448315abb9822db00$aaaSXB","test1"},
{"$dynamic_8$02547864bed278658e8f54dd6dfd69b7$123456","thatsworking"},
{"$dynamic_8$2f6f3881972653ebcf86e5ad3071a4ca$5555hh","test3"},
#ifdef DEBUG
{"$dynamic_8$23f865a14edba990cd1bff1f113fd0a0$12345678901234567890123456789012", "12345678901234567890123"},
#ifndef SIMD_COEF_32
{"$dynamic_8$a5c3893a720936da50edad336ea14f46$12345678901234567890123456789012", "123456789012345678901234567890123456789012345678"},
#endif
#endif
{NULL}
};
//dynamic_9 --> md5($s.md5($p))
static DYNAMIC_primitive_funcp _Funcs_9[] =
{
#if defined (SIMD_COEF_32)
//MGF_KEYS_CRYPT_IN2
DynamicFunc__clean_input,
DynamicFunc__append_salt,
DynamicFunc__append_from_last_output2_to_input1_as_base16,
DynamicFunc__crypt_md5,
NULL
#else
//MGF_KEYS_BASE16_IN1_MD5
DynamicFunc__clean_input2,
DynamicFunc__append_salt2,
DynamicFunc__append_input2_from_input,
DynamicFunc__crypt_md5_in2_to_out1,
NULL
#endif
};
static struct fmt_tests _Preloads_9[] =
{
{"$dynamic_9$b38c18b5e5b676e211442bd41000b2ec$aaaSXB","test1"},
{"$dynamic_9$4dde7cd4cbf0dc4c59b255ae77352914$123456","thatsworking"},
{"$dynamic_9$899af20e3ebdd77aaecb0d9bc5fbbb66$5555hh","test3"},
#ifdef DEBUG
{"$dynamic_9$1d01316a7bc597a5b2743f2da41b10ef$12345678901234567890123", "1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_9$299d55d735d64bb70f517312a2a62946$12345678901234567890123", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
#endif
{NULL}
};
//dynamic_10 --> md5($s.md5($s.$p))
static DYNAMIC_primitive_funcp _Funcs_10[] =
{
DynamicFunc__clean_input,
DynamicFunc__append_salt,
DynamicFunc__append_keys,
DynamicFunc__crypt_md5,
DynamicFunc__clean_input2,
DynamicFunc__append_salt2,
DynamicFunc__append_from_last_output_to_input2_as_base16,
DynamicFunc__crypt_md5_in2_to_out1,
NULL
};
static struct fmt_tests _Preloads_10[] =
{
{"$dynamic_10$781f83a676f45169dcfc7f36dfcdc3d5$aaaSXB","test1"},
{"$dynamic_10$f385748e67a2dc1f6379b9124fabc0df$123456","thatsworking"},
{"$dynamic_10$9e3702bb13386270cd4b0bd4dbdd489e$5555hh","test3"},
#ifdef DEBUG
{"$dynamic_10$b40b30cba281d45c54c12b1b54c6b278$12345678901234567890123", "12345678901234567890123456789012"},
#ifndef SIMD_COEF_32
{"$dynamic_10$0d6e0b9feace8cd90de6e2e683eba981$12345678901234567890123", "123456789012345678901234567890123456789012345678901234567"},
#endif
#endif
{NULL}
};
//dynamic_11 --> md5($s.md5($p.$s))
static DYNAMIC_primitive_funcp _Funcs_11[] =
{
DynamicFunc__clean_input,
DynamicFunc__append_keys,
DynamicFunc__append_salt,
DynamicFunc__crypt_md5,
DynamicFunc__clean_input2,
DynamicFunc__append_salt2,
DynamicFunc__append_from_last_output_to_input2_as_base16,
DynamicFunc__crypt_md5_in2_to_out1,
NULL
};
static struct fmt_tests _Preloads_11[] =
{
{"$dynamic_11$f809a64cbd0d23e099cd5b544c8501ac$aaaSXB","test1"},
{"$dynamic_11$979e6671535cda6db95357d8a0afd9ac$123456","thatsworking"},
{"$dynamic_11$78a61ea73806ebf27bef2ab6a9bf5412$5555hh","test3"},
#ifdef DEBUG
{"$dynamic_11$e2e915bd2946037165f4000b0b38aaa9$12345678901234567890123", "12345678901234567890123456789012"},
#ifndef SIMD_COEF_32
{"$dynamic_11$b2b3fe7e67e191782faa16d8440c1a26$12345678901234567890123", "123456789012345678901234567890123456789012345678901234567"},
#endif
#endif
{NULL}
};
//dynamic_12 --> md5(md5($s).md5($p))
static DYNAMIC_primitive_funcp _Funcs_12[] =
{
//MGF_SALTED
//MGF_SALT_AS_HEX
//MGF_FLAT_BUFFERS MUCH faster using flat buffers
//MGF_KEYS_BASE16_IN1_Offset_MD5
DynamicFunc__overwrite_salt_to_input1_no_size_fix,
DynamicFunc__set_input_len_64,
DynamicFunc__MD5_crypt_input1_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_12[] =
{
{"$dynamic_12$fbbd9532460f2d03fa8af9e75c41eefc$aaaSXB","test1"},
{"$dynamic_12$b80eef24d1d01b61b3beff38559f9d26$123456","thatsworking"},
{"$dynamic_12$1e5489bdca008aeed6e390ee87ce9b92$5555hh","test3"},
{"$dynamic_12$6b9b2abc2e1c25f2eee6b771072da26c$12345678901234567890123456789012", "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"},
{NULL}
};
//dynamic_13 --> md5(md5($p).md5($s))
static DYNAMIC_primitive_funcp _Funcs_13[] =
{
//MGF_KEYS_BASE16_IN1_MD5
//MGF_SALT_AS_HEX
//MGF_FLAT_BUFFERS MUCH faster using flat buffers
DynamicFunc__set_input_len_32,
DynamicFunc__append_salt,
DynamicFunc__MD5_crypt_input1_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_13[] =
{
{"$dynamic_13$c6b69bec81d9ff5d0560d8f469a8efd5$aaaSXB","test1"},
{"$dynamic_13$7abf788b3abbfc8719d900af96a3763a$123456","thatsworking"},
{"$dynamic_13$1c55e15102ed17eabe5bf11271c7fcae$5555hh","test3"},
{"$dynamic_13$543a505f7e8c9cdfb32743f91d904837$12345678901234567890123456789012", "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"},
{NULL}
};
//dynamic_14 --> md5($s.md5($p).$s)
static DYNAMIC_primitive_funcp _Funcs_14[] =
{
#if defined (SIMD_COEF_32)
//MGF_KEYS_CRYPT_IN2
DynamicFunc__clean_input,
DynamicFunc__append_salt,
DynamicFunc__append_from_last_output2_to_input1_as_base16,
DynamicFunc__append_salt,
DynamicFunc__crypt_md5,
NULL
#else
//MGF_KEYS_BASE16_IN1_MD5
DynamicFunc__clean_input2,
DynamicFunc__append_salt2,
DynamicFunc__append_input2_from_input,
DynamicFunc__append_salt2,
DynamicFunc__crypt_md5_in2_to_out1,
NULL
#endif
};
static struct fmt_tests _Preloads_14[] =
{
{"$dynamic_14$778e40e10d82a08f5377992330008cbe$aaaSXB","test1"},
{"$dynamic_14$d6321956964b2d27768df71d139eabd2$123456","thatsworking"},
{"$dynamic_14$1b3c72e16427a2f4f0819243877f7967$5555hh","test3"},
#ifdef DEBUG
{"$dynamic_14$6aaa97fcf40c519006926520af3264fd$12345678901", "1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_14$abdb659cdc44d5fde6b238f7013f71dc$12345678901", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
#endif
{NULL}
};
//dynamic_15 --> md5($u.md5($p).$s)
static DYNAMIC_primitive_funcp _Funcs_15[] =
{
// MGF_SALTED|MGF_USERNAME|MGF_FLAT_BUFFERS, MGF_KEYS_BASE16_IN1_MD5
DynamicFunc__clean_input2_kwik,
DynamicFunc__append_userid2,
DynamicFunc__append_input2_from_input,
DynamicFunc__append_salt2,
DynamicFunc__MD5_crypt_input2_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_15[] =
{
{"$dynamic_15$6093d5cb3e2f99d9110eb9c4bbca5f8c$aaaSXB$$Ujoeblow","test1"},
{"$dynamic_15$6a2dc4a6637bc5c2488f27faeead8720$123456$$Uadmin","thatsworking"},
{"$dynamic_15$63aea4b8fe491df8545cc0099ac668d4$5555hh$$Uralph","test3"},
// to test 'like' we would see from an 'input file' where user name would be first field
{"$dynamic_15$6093d5cb3e2f99d9110eb9c4bbca5f8c$aaaSXB","test1", {"joeblow"} },
{"$dynamic_15$6a2dc4a6637bc5c2488f27faeead8720$123456","thatsworking", {"admin"} },
{"$dynamic_15$63aea4b8fe491df8545cc0099ac668d4$5555hh","test3", {"ralph"} },
// at least one hash exactly like it gets stored in john.pot
{"$dynamic_15$6093d5cb3e2f99d9110eb9c4bbca5f8c$HEX$6161615358422424556a6f65626c6f77","test1"},
#ifdef DEBUG
{"$dynamic_15$a2609e968a7124a8ac299c5f03341b85$123456789012$$Ubarney", "1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_15$230942ea4c6f83d50ce2498cae73a83c$123456789012$$Uripper", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
#endif
{NULL}
};
//dynamic_16 --> md5(md5(md5($p).$s).$s2)
static DYNAMIC_primitive_funcp _Funcs_16[] =
{
// MGF_SALTED|MGF_SALTED2|MGF_FLAT_BUFFERS, MGF_KEYS_BASE16_IN1_MD5
DynamicFunc__clean_input2_kwik,
DynamicFunc__append_input2_from_input,
DynamicFunc__append_salt2,
DynamicFunc__MD5_crypt_input2_overwrite_input2,
DynamicFunc__append_2nd_salt2,
DynamicFunc__MD5_crypt_input2_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_16[] =
{
// NOTE the $ is the byte starting the salt block, and the $$2 is the
// pattern showing where to 'split off' the
{"$dynamic_16$5ce496c635f96ac1ccd87518d4274b49$aaaSXB$$2salt2","test1"},
{"$dynamic_16$2f49a8804a3aee4da3c219539fc93c6d$123456$$2ssss2","thatsworking"},
{"$dynamic_16$d8deb4f271694c7a9a6c54f5068e3825$5555hh$$2sxxx3","test3"},
// repeat the hash in exactly the same format as it gets stored in john.pot
{"$dynamic_16$d8deb4f271694c7a9a6c54f5068e3825$HEX$3535353568682424327378787833","test3"},
{"$dynamic_16$0b714c79c5790c913a6e44faad39f597$12345678901234567890123$$23IJIps", "1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_16$1e27f26c540f2980809f4d74989e20e3$12345678901234567890123$$2730ZnC", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
{NULL}
};
//dynamic_18 --> PO md5($s.$C1.$p.$C2.$s)
static DYNAMIC_primitive_funcp _Funcs_18[] =
{
//DynamicFunc__clean_input_kwik,
//DynamicFunc__append_salt,
//DynamicFunc__append_input1_from_CONST1,
//DynamicFunc__append_keys,
//DynamicFunc__append_input1_from_CONST2,
//DynamicFunc__append_salt,
//DynamicFunc__crypt_md5,
//MGF_POSetup
// made a 'special' function to speed this up about 20%
DynamicFunc__POCrypt,
NULL
};
static struct fmt_tests _Preloads_18[] =
{
{"$dynamic_18$0c78bdef7d5448105cfbbc9aaa490a44$550c41c11bab48f9dbd8203ed313eef0", "abc123"},
{"$dynamic_18$550c41c11bab48f9dbd8203ed313eef0$aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "abc123"},
{"$dynamic_18$9be296cf73d2f548dae3cccafaff1dd9$82916963c701200625cba2acd40d6569", "FRED"},
{"$dynamic_18$a0e2078f0354846ec5bc4c7d7be08a46$82916963c701200625cba2acd40d6569", ""},
{"$dynamic_18$2401086f2193f35db28c0035b27feb2a$767179c7a2bff19651ce97d294c30cfb", "12345678901234567890123456789012"},
#ifndef SIMD_COEF_32
{"$dynamic_18$52eece2c63887509d49506254163dc48$767179c7a2bff19651ce97d294c30cfb", "123456789012345678901234567890123456789012345678"},
#endif
{NULL}
};
static DYNAMIC_Constants _Const_18[] =
{
// constants not needed in the DynamicFunc__POCrypt call, but left here for documentation reasons.
{1, "Y"},
{1, "\xF7"},
{0, NULL}
};
//dynamic_19 --> Cisco PIX hash (same as pixMD5_fmt.c)
static DYNAMIC_primitive_funcp _Funcs_19[] =
{
//MGF_INPBASE64_4x6
DynamicFunc__clean_input,
DynamicFunc__append_keys,
DynamicFunc__set_input_len_16,
DynamicFunc__crypt_md5,
NULL
};
static struct fmt_tests _Preloads_19[] =
{
{"$dynamic_19$2KFQnbNIdI.2KYOU","cisco"},
{"$dynamic_19$TRPEas6f/aa6JSPL","test1"},
{"$dynamic_19$OMT6mXmAvGyzrCtp","test2"},
{"$dynamic_19$gTC7RIy1XJzagmLm","test3"},
{"$dynamic_19$.7nfVBEIEu4KbF/1","0123456789abcdef"},
{"$dynamic_19$NuLKvvWGg.x9HEKO","password"},
{"$dynamic_19$oWC1WRwqlBlbpf/O","test4"},
{NULL}
};
//dynamic_20$ --> Salted Cisco ASA hash (same as asaMD5_fmt.c)
static DYNAMIC_primitive_funcp _Funcs_20[] =
{
//MGF_INPBASE64_4x6
//MGF_SALTED
DynamicFunc__clean_input,
DynamicFunc__append_keys,
DynamicFunc__append_salt,
DynamicFunc__set_input_len_16,
DynamicFunc__crypt_md5,
NULL
};
static struct fmt_tests _Preloads_20[] =
{
{"$dynamic_20$h3mJrcH0901pqX/m$alex","ripper"},
{"$dynamic_20$3USUcOPFUiMCO4Jk$cisc","cisco"},
{"$dynamic_20$lZt7HSIXw3.QP7.R$admc","CscFw-ITC!"},
{"$dynamic_20$hN7LzeyYjw12FSIU$john","cisco"},
{"$dynamic_20$7DrfeZ7cyOj/PslD$jack","cisco"},
{"$dynamic_20$htyHHwn05fVtrEo6$1234", "123456789012"},
{NULL}
};
//dynamic_22 --> md5(sha1($p))
static DYNAMIC_primitive_funcp _Funcs_22[] =
{
//MGF_StartInX86Mode
//MGF_KEYS_INPUT
DynamicFunc__clean_input2_kwik,
DynamicFunc__LargeHash_OUTMode_base16,
DynamicFunc__SHA1_crypt_input1_append_input2,
DynamicFunc__X86toSSE_switch_input2,
DynamicFunc__crypt_md5_in2_to_out1,
NULL
// This may be faster. Found with the dyna compiler, optimizer.
//Flag=MGF_FLAT_BUFFERS
//Flag=MGF_KEYS_INPUT
//MaxInputLenX86=110
//MaxInputLen=110
//Func=DynamicFunc__SHA1_crypt_input1_overwrite_input2
//Func=DynamicFunc__MD5_crypt_input2_to_output1_FINAL
};
static struct fmt_tests _Preloads_22[] =
{
{"$dynamic_22$a7168f0f249e3add33da11a59e228a57","test1"},
{"$dynamic_22$067dda3ad565339fffa61ba74fab0ba3","thatsworking"},
{"$dynamic_22$71a1083be5c288da7e57b8c2bd7cbc96","test3"},
{"$dynamic_22$fbbd5aa600379a7964cef214c8a86b8a", "1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_22$970aa601bafc0335f2249ff43e0504ef", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
{NULL}
};
//dynamic_23 --> sha1(md5($p))
static DYNAMIC_primitive_funcp _Funcs_23[] =
{
//MGF_INPUT_20_BYTE
//MGF_KEYS_INPUT
DynamicFunc__crypt_md5,
DynamicFunc__SSEtoX86_switch_output1,
DynamicFunc__clean_input2_kwik,
DynamicFunc__append_from_last_output_to_input2_as_base16,
DynamicFunc__SHA1_crypt_input2_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_23[] =
{
{"$dynamic_23$81d84525eb1499d518cf3cb3efcbe1d11c4ccf25","test1"},
{"$dynamic_23$6cd62e1767b65eec58d687de6d9c08a828018254","thatsworking"},
{"$dynamic_23$7d653cf00d747a9fbab213b6c2b335cfe8199ff3","test3"},
{"$dynamic_23$e290c79e9584e4cd61faded848ff96f03d89e649", "1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_23$609fed73c093edfbcc9913004656f3609bd3a5be", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
{NULL}
};
//dynamic_24 --> sha1($p.$s)
static DYNAMIC_primitive_funcp _Funcs_24[] =
{
//MGF_INPUT_20_BYTE
//MGF_SALTED
//MGF_FLAT_BUFFERS
DynamicFunc__clean_input_kwik,
DynamicFunc__append_keys,
DynamicFunc__append_salt,
DynamicFunc__SHA1_crypt_input1_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_24[] =
{
{"$dynamic_24$5a12479f0a8286a832288e1dc2ea9b2eda4e382d$sG","test1"},
{"$dynamic_24$c72b6f1caddb158831cab0b08d29243ea20fc869$xxRW","thatsworking"},
{"$dynamic_24$b966eff1aac95e92818a7c59326cce297b935eff$s3xx","test3"},
MTL({"$dynamic_24$ac5b6b001b3920b868af5e7e35272a8856d80b10$123456789012345678901234", "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"},)
{NULL}
};
//dynamic_25 --> sha1($s.$p)
static DYNAMIC_primitive_funcp _Funcs_25[] =
{
//MGF_INPUT_20_BYTE
//MGF_SALTED
//MGF_FLAT_BUFFERS
DynamicFunc__clean_input_kwik,
DynamicFunc__append_salt,
DynamicFunc__append_keys,
DynamicFunc__SHA1_crypt_input1_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_25[] =
{
{"$dynamic_25$f5266f29ff7f1ea6fc30085c8347fcf6a6e36e9c$sG","test1"},
{"$dynamic_25$a34af873d9047541b4d76ceae7b391f0664ca99e$xxRW","thatsworking"},
{"$dynamic_25$f0058038be0e821caa3031b463aed00fbe7e3beb$s3xx","test3"},
MTL({"$dynamic_25$1b8cde0e3ecaed9abfa4deaf37addc7adcb8a932$123456789012345678901234", "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456"},)
// Inno Setup, Digest::SHA1("PasswordCheckHash" . salt . password)
{"$dynamic_25$6d29001f8a5062d7b6f5b32b30a8cf64da6567e0$HEX$50617373776f7264436865636b48617368463243d92abc14cc", "openwall"},
{NULL}
};
static DYNAMIC_primitive_funcp _Funcs_41[] =
{
//MGF_UTF8
//MGF_INPUT_20_BYTE
//MGF_SALTED
//MGF_FLAT_BUFFERS
DynamicFunc__clean_input_kwik,
DynamicFunc__append_salt,
DynamicFunc__setmode_unicode,
DynamicFunc__append_keys,
DynamicFunc__SHA1_crypt_input1_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_41[] =
{
// Inno Setup (Unicode version)
{"$dynamic_41$d91d81ffd3ce0a64b4687391e2ce9b5055ee2680$HEX$50617373776f7264436865636b48617368a10cfd998d3442a8", "openwall"},
{"$dynamic_41$b6a8b8ba9078d05a0ff1e26043e3ef21278095bf$HEX$50617373776f7264436865636b486173680011223344556677", "HelloWorld!"},
{"$dynamic_41$97305bbc2f279dcd243450387d7aba5239d85165$HEX$50617373776f7264436865636b48617368AABBCCDDEEFF1122", "FooBar123"},
{NULL}
};
// dynamic_26 raw-sha1
static DYNAMIC_primitive_funcp _Funcs_26[] =
{
//MGF_INPUT_20_BYTE
//MGF_KEYS_INPUT
//MGF_FLAT_BUFFERS
DynamicFunc__SHA1_crypt_input1_to_output1_FINAL,
NULL
};
static struct fmt_tests _Preloads_26[] =
{
{"$dynamic_26$b444ac06613fc8d63795be9ad0beaf55011936ac","test1"},
{"$dynamic_26$1068db2941b46d12f790df99d72fe8c2eb6d3aaf","thatsworking"},
{"$dynamic_26$3ebfa301dc59196f18593c45e519287a23297589","test3"},
MTL({"$dynamic_26$e4227954acdafb57977d7dc8a19570959176fb72", "12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890"},)
{NULL}
};
// Dyna 27/28 have been removed, Spring of 2013. These dyna numbers should NOT be reused for any purpose.
//dynamic_27 --> FreeBSD MD5
//dynamic_28 --> Apache MD5
//dynamic_29 --> raw-md5-unicode md5(utf16($p))
static DYNAMIC_primitive_funcp _Funcs_29[] =
{
//MGF_UTF8
DynamicFunc__clean_input,
DynamicFunc__setmode_unicode,
DynamicFunc__append_keys,
DynamicFunc__crypt_md5,
NULL
};
static struct fmt_tests _Preloads_29[] =
{
{"$dynamic_29$16c47151c18ac087cd12b3a70746c790","test1"},
// these U= test strings will ONLY be loaded in --encoding=utf8 mode
{"U=$dynamic_29$94a4e171de16580742c4d141e6607bf7","\xE2\x82\xAC"},
{"U=$dynamic_29$03c60810f0e54d16e826aca385d776c8","\xE2\x82\xAC\xE2\x82\xAC"},
{"U=$dynamic_29$2d554433d7cde7ec8d16aaf126c3be6b","\xE2\x82\xAC\xC3\xBC"},
{"U=$dynamic_29$8007d9070b27db7b30433df2cd10abc1","\xC3\xBC\xE2\x82\xAC"},
// these A= test strings will ONLY be loaded if we are NOT in --encoding=utf8 mode
{"A=$dynamic_29$ea7ab2b5c07650badab30790d0c9b63e","\xFC"},
{"A=$dynamic_29$f0a0b9f1dea0e458cec9a284ff434d44","\xFC\xFC"},
{"A=$dynamic_29$d25a0b436b768777cc9a343d283dbf5a","\xFC\xFC\xFC"},
{"A=$dynamic_29$719917322bf12168f8c55939e4fec8de","\xFC\xFC\xFC\xFC"},
{"$dynamic_29$d41d8cd98f00b204e9800998ecf8427e",""},
{"$dynamic_29$9c3abef89ff76f8acd80eae37b35f64f","test2"},
{"$dynamic_29$849ee1b88b5d887bdb058180a666b450","test3"},
{"$dynamic_29$8c4cb7e8b33b56a833cdaa8673f3b425","test4"},
{"$dynamic_29$537e738b1ac5551f65106368dc301ece","thatsworking"},
{"$dynamic_29$35a4af9e0a634cd450551137193da28f", "123456789012345678901234567"},
#ifndef SIMD_COEF_32
{"$dynamic_29$002ca7054ae8657c55fb8b32008e113d", "1234567890123456789012345678901234567890"},
#endif
{NULL}
};
//dynamic_30 --> md4($p) // raw-md4
static DYNAMIC_primitive_funcp _Funcs_30[] =
{
//MGF_KEYS_INPUT
DynamicFunc__crypt_md4,
NULL
};
static struct fmt_tests _Preloads_30[] =
{
{"$dynamic_30$f79e002ac163078c673fa2c321e5e66f","test1"},
{"$dynamic_30$921c92ad4664b899470e6f5a8e37b8f8","thatsworking"},
{"$dynamic_30$cd23914be346f8d20da217890915809c","test3"},
{"$dynamic_30$f75ceb87e3be2cf77aca6d243716358d", "1234567890123456789012345678901234567890123456789012345"},
#ifndef SIMD_COEF_32
{"$dynamic_30$e33b4ddc9c38f2199c3e7b164fcc0536", "12345678901234567890123456789012345678901234567890123456789012345678901234567890"},
#endif
{NULL}
};
//dynamic_31 --> md4($s.$p)
static DYNAMIC_primitive_funcp _Funcs_31[] =
{
DynamicFunc__clean_input,
DynamicFunc__append_salt,
DynamicFunc__append_keys,
DynamicFunc__crypt_md4,
NULL
};
static struct fmt_tests _Preloads_31[] =
{
{"$dynamic_31$5f4de0716cc8e0c8ebbd20f5adbdc09f$fHyMBLzW","test1"},
{"$dynamic_31$c2dd539797c1cdefdbdd2c83ecb8e841$x84Smbf7","thatsworking"},
{"$dynamic_31$3a90c6e0b30cda0df2735267a2cce59c$MgTzwUaX","test3"},
{"$dynamic_31$22748c473e37cd6fd02152cff43ade7c$123456789012345678901234", "1234567890123456789012345678901"},
#ifndef SIMD_COEF_32
{"$dynamic_31$6ee26901bf4abd05a372988f27bd9133$123456789012345678901234", "12345678901234567890123456789012345678901234567890123456"},
#endif
{NULL}
};
//dynamic_32 --> md4($p.$s)
static DYNAMIC_primitive_funcp _Funcs_32[] =
{
DynamicFunc__clean_input,
DynamicFunc__append_keys,
DynamicFunc__append_salt,
DynamicFunc__crypt_md4,
NULL
};
static struct fmt_tests _Preloads_32[] =
{
{"$dynamic_32$7587e30d68ce5d7e2d4e7d98a8f69ff5$RAkUuD88","test1"},
{"$dynamic_32$ac41e895dcebe4b4badc4280c7bbbe21$9i6Xjysc","thatsworking"},
{"$dynamic_32$86ea8d1ac762fe341a3c811092eda3d4$IUazKzjG","test3"},
{"$dynamic_32$d20c883c8ea9eca7019d6795e1b2939e$123456789012345678901234", "1234567890123456789012345678901"},
#ifndef SIMD_COEF_32
{"$dynamic_32$7f67e75ef8aead6a1b61afe9a2cb41c8$123456789012345678901234", "12345678901234567890123456789012345678901234567890123456"},
#endif
{NULL}
};
//dynamic_33 --> md4(utf16($p)) // NT
static DYNAMIC_primitive_funcp _Funcs_33[] =
{
//MGF_UTF8
DynamicFunc__clean_input,
DynamicFunc__setmode_unicode,
DynamicFunc__append_keys,
DynamicFunc__crypt_md4,