-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Makefile.in
1035 lines (732 loc) · 49.7 KB
/
Makefile.in
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 file is part of John the Ripper password cracker,
# Copyright (c) 1996-2014 by Solar Designer
#
# ...with changes in the jumbo patch, by various authors
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted.
#
# There's ABSOLUTELY NO WARRANTY, express or implied.
#
# This file converted into autoconf format by JimF and
# magnum, in 2014. That is still a work in progress.
#
@SET_MAKE@
CC = @CC@
PTHREAD_CC = @PTHREAD_CC@
ifdef PTHREAD_CC
CC = @PTHREAD_CC@
endif
AR = @AR@
AS = @AS@
LD = @LD@
CPP = @CPP@
CP = cp
LN = @LN_S@
MV = mv -f
RM = rm -f
MKDIR = @MKDIR_P@
TR = tr
SED = @SED@
FIND = @FIND@
NULL = /dev/null
SORT = @SORT@
STRIP = @STRIP@
PEFLAGS = peflags --dynamicbase=true --nxcompat=true
SHELL = /bin/sh
VPATH = @srcdir@
subdirs = aes secp256k1 ed25519-donna poly1305-donna @ZTEX_SUBDIRS@
top_srcdir = @top_srcdir@
srcdir = @srcdir@
prefix = @prefix@
F = ""
JTR_GIT_COMMIT = \"-$(shell git rev-parse --short=10 HEAD 2>/dev/null)\"
ifeq ($(JTR_GIT_COMMIT), \"-\")
# this format string will be replaced by git archive:
JTR_ARCHIVE_VERSION_STRING = $Format:-%h %ci$
JTR_GIT_VERSION = JUMBO_VERSION "\"$(shell echo "$(JTR_ARCHIVE_VERSION_STRING)" | "$(SED)" 's/ormat:-%h %ci/-/g')\""
else
JTR_GIT_HEAD_TS = \" $(shell git show -s --format=%ci HEAD 2>/dev/null)\"
JTR_GIT_VERSION = JUMBO_VERSION "$(JTR_GIT_COMMIT) $(JTR_GIT_HEAD_TS)"
endif
ifdef JTR_RAW_BINARY
JTR_GIT_VERSION = JUMBO_VERSION \"-stabilized\"
endif
CPPFLAGS = @CPPFLAGS@
CFLAGSX = -c @CFLAGS@ @JOHN_NO_SIMD@ @CFLAGS_EXTRA@ @OPENSSL_CFLAGS@ @OPENMP_CFLAGS@ @HAVE_MPI@ @PTHREAD_CFLAGS@ $(CPPFLAGS)
# CFLAGS for use on the main john.c file only
CFLAGS_MAIN = -DAC_BUILT @CC_MAIN_CPU@ $(CFLAGSX)
CFLAGS = -DAC_BUILT @CC_CPU@ @CC_MAIN_CPU@ $(CFLAGSX)
ASFLAGS = -DAC_BUILT @ASFLAGS@ @JOHN_NO_SIMD@ @CC_CPU@ @CC_MAIN_CPU@ -c @OPENMP_CFLAGS@ @HAVE_MPI@ @EXTRA_AS_FLAGS@
LIBS = @LIBS@
LDFLAGS = -g @LDFLAGS@ $(LIBS) @HAVE_MPI@
#
OPT_NORMAL = @OPT_NORMAL_FLAGS@
OPT_INLINE = @OPT_INLINE_FLAGS@
#
PLUGFORMATS_OBJS = @PLUGFORMATS_OBJS@
JOHN_OBJS = \
jumbo.o john_mpi.o \
DES_fmt.o DES_std.o DES_bs.o DES_bs_b.o \
BSDI_fmt.o \
MD5_fmt.o MD5_std.o md5crypt_common.o md5crypt_long_fmt.o \
BF_fmt.o BF_std.o BF_common.o \
scrypt_fmt.o \
yescrypt/yescrypt-opt.o yescrypt/yescrypt-common.o \
yescrypt/sha256.o \
AFS_fmt.o \
LM_fmt.o \
trip_fmt.o \
KeccakDuplex.o KeccakF-1600-opt64.o KeccakHash.o KeccakSponge.o \
whirlpool.o haval.o skein.o md2.o panama.o \
timer.o omp_autotune.o \
md5.o \
rc4.o \
hmacmd5.o \
base64_convert.o \
md4.o sha1.o sha2.o \
dynamic_fmt.o dynamic_parser.o dynamic_preloads.o dynamic_utils.o dynamic_big_crypt.o \
dynamic_compiler.o dynamic_compiler_lib.o \
ripemd.o tiger.o \
@UNRAR_OBJS@ \
rar2john.o \
zip2john.o pkzip.o \
$(PLUGFORMATS_OBJS) \
dyna_salt.o dummy.o \
gost.o \
gpu_common.o \
batch.o bench.o charset.o common.o compiler.o config.o cracker.o crc32.o external.o \
formats.o getopt.o idle.o inc.o john.o list.o loader.o logger.o mask.o mask_ext.o \
memory.o misc.o options.o params.o path.o recovery.o rpp.o rules.o signals.o single.o status.o \
suppressor.o tty.o wordlist.o \
mkv.o mkvlib.o \
subsets.o unicode_range.o \
listconf.o \
fake_salts.o \
win32_memmap.o mmap-windows.o \
uaf_encode.o \
unicode.o \
unshadow.o \
unafs.o \
undrop.o \
regex.o pp.o \
c3_fmt.o \
lzma/LzmaDec.o lzma/Lzma2Dec.o lzma/Bra.o lzma/Bra86.o lzma/BraIA64.o lzma/CpuArch.o lzma/Delta.o \
unique.o gpg2john.o \
showformats.o
OCL_OBJS = opencl_common.o opencl_dynamic_loader.o opencl_autotune.o bt.o bt_hash_type_64.o bt_hash_type_128.o bt_hash_type_192.o bt_twister.o
OPENCL_PLUGFORMATS_OBJS = @OPENCL_PLUGFORMATS_OBJS@
ZTEX_OBJS = ztex_descrypt.o ztex_bcrypt.o ztex_sha512crypt.o ztex_drupal7.o ztex_sha256crypt.o ztex_md5crypt.o ztex_phpass.o ztex_common.o
FUZZ_OBJS = fuzz.o
GENMKVPWD_OBJS = \
genmkvpwd.o mkvlib.o memory.o miscnl.o path.o jumbo.o
PROJ = ../run/john@EXE_EXT@ ../run/unshadow@EXE_EXT@ ../run/unafs@EXE_EXT@ ../run/unique@EXE_EXT@ ../run/undrop@EXE_EXT@ \
../run/rar2john@EXE_EXT@ ../run/zip2john@EXE_EXT@ \
../run/genmkvpwd@EXE_EXT@ ../run/mkvcalcproba@EXE_EXT@ ../run/calc_stat@EXE_EXT@ \
../run/tgtsnarf@EXE_EXT@ ../run/racf2john@EXE_EXT@ ../run/hccap2john@EXE_EXT@ \
../run/raw2dyna@EXE_EXT@ ../run/keepass2john@EXE_EXT@ ../run/bitlocker2john@EXE_EXT@ \
../run/dmg2john@EXE_EXT@ ../run/putty2john@EXE_EXT@ ../run/uaf2john@EXE_EXT@ \
../run/wpapcap2john@EXE_EXT@ \
../run/gpg2john@EXE_EXT@ ../run/cprepair@EXE_EXT@ ../run/base64conv@EXE_EXT@
WITH_PCAP = @HAVE_PCAP@
ifdef WITH_PCAP
PROJ += ../run/SIPdump@EXE_EXT@ ../run/vncpcap2john@EXE_EXT@ ../run/eapmd5tojohn@EXE_EXT@
endif
WITH_OPENCL=@CL_LIBS@
ifdef WITH_OPENCL
CFLAGS += -DHAVE_OPENCL @CL_CFLAGS@
CFLAGS_MAIN += -DHAVE_OPENCL @CL_CFLAGS@
JOHN_OBJS += $(OCL_OBJS) $(OPENCL_PLUGFORMATS_OBJS)
# core OpenCL dependencies
CL_DEVICE_HEADER = ../run/opencl/opencl_device_info.h
CL_COMMON_HEADER = opencl_common.h gpu_common.h gpu_sensors.h
endif
WITH_ZTEX=@ZTEX_LIBS@
ifdef WITH_ZTEX
CFLAGS += -DHAVE_ZTEX
CFLAGS_MAIN += -DHAVE_ZTEX
JOHN_OBJS += $(ZTEX_OBJS)
endif
WITH_FUZZ=@HAVE_FUZZ@
ifdef WITH_FUZZ
CFLAGS += -DHAVE_FUZZ
CFLAGS_MAIN += -DHAVE_FUZZ
JOHN_OBJS += $(FUZZ_OBJS)
endif
WITH_LIBFUZZER=@HAVE_LIBFUZZER@
ifdef WITH_LIBFUZZER
CFLAGS += -DHAVE_LIBFUZZER -fsanitize=address -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div
CFLAGS_MAIN += -DHAVE_LIBFUZZER -fsanitize=address -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div
LDFLAGS += -fsanitize=fuzzer,address
endif
#########################################################
# this is what ./configure && make
# gets you.
#
# also need to figure out -DUNDERSCORES and add to ASFLAGS
# also need to figure out -mpreferred-stack-boundary=4 and add (or whatever the stack size is)
#
#########################################################
default:
$(MAKE) find_version
@$(MAKE) $(PROJ) \
JOHN_OBJS="$(JOHN_OBJS) @CC_ASM_OBJS@" \
AESNI_ARCH=@AESNI_ARCH@
@if [ "$(OS)" = "Windows_NT" ]; then \
$(MAKE) peflags; \
fi
@echo
@echo Make process completed.
#########################################################
## This is the 'END' of the main default make target.
#########################################################
# Default build is always using -g (stripped when 'make install') but this
# target turns off optimizations for better debugging, and defines DEBUG
# so code can adopt.
debug:
$(MAKE) default CFLAGS="-DDEBUG $(CFLAGS) @O_DEBUG@" CFLAGS_MAIN="-DDEBUG $(CFLAGS_MAIN) @O_DEBUG@"
help:
@echo "The 'older' fat makefile can be done with make --file=Makefile.legacy [target]"
dynamic_big_crypt.c: dynamic_big_crypt_hash.cin dynamic_big_crypt_header.cin dynamic_big_crypt_generator.sh dynamic_big_crypt_chopper.pl dynamic_big_crypt_generated.c
$(shell ./dynamic_big_crypt_generator.sh)
@if [ ! -f dynamic_big_crypt.c ] ; then $(CP) dynamic_big_crypt_generated.c dynamic_big_crypt.c ; fi
# Digital/Compaq's cc and make use the .S suffix for a different purpose...
digipaq-alpha.o: alpha.S
$(CPP) $(CPPFLAGS) alpha.S > tmp.s
$(AS) $(ASFLAGS) tmp.s -o digipaq-alpha.o
$(RM) tmp.s
@PLUGFORMATS_DEPS@
######## auto-generated, best-effort
AFS_fmt.o: AFS_fmt.c arch.h misc.h jumbo.h autoconfig.h params.h DES_std.h common.h memory.h formats.h os.h os-autoconf.h
lzma/Bra.o: lzma/Bra.c lzma/Precomp.h lzma/Compiler.h lzma/CpuArch.h lzma/7zTypes.h lzma/Bra.h
lzma/Bra86.o: lzma/Bra86.c lzma/Precomp.h lzma/Compiler.h lzma/Bra.h lzma/7zTypes.h
lzma/BraIA64.o: lzma/BraIA64.c lzma/Precomp.h lzma/Compiler.h lzma/CpuArch.h lzma/7zTypes.h lzma/Bra.h
lzma/CpuArch.o: lzma/CpuArch.c lzma/Precomp.h lzma/Compiler.h lzma/CpuArch.h lzma/7zTypes.h
lzma/Delta.o: lzma/Delta.c lzma/Precomp.h lzma/Compiler.h lzma/Delta.h lzma/7zTypes.h
lzma/Lzma2Dec.o: lzma/Lzma2Dec.c lzma/Precomp.h lzma/Compiler.h lzma/Lzma2Dec.h lzma/LzmaDec.h lzma/7zTypes.h
lzma/LzmaDec.o: lzma/LzmaDec.c lzma/Precomp.h lzma/Compiler.h lzma/LzmaDec.h lzma/7zTypes.h
base64_convert.o: base64_convert.c missing_getopt.h memory.h arch.h misc.h jumbo.h autoconfig.h common.h base64_convert.h os.h os-autoconf.h
batch.o: batch.c params.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h signals.h loader.h list.h formats.h misc.h status.h config.h single.h wordlist.h inc.h memory.h
bench.o: bench.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h times.h misc.h params.h memory.h signals.h formats.h dyna_salt.h bench.h john.h unicode.h options.h list.h loader.h getopt.h common.h config.h gpu_common.h gpu_sensors.h john_mpi.h
best.o: best.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h params.h common.h memory.h formats.h misc.h bench.h
BF_common.o: BF_common.c arch.h misc.h jumbo.h autoconfig.h common.h memory.h formats.h params.h BF_common.h os.h os-autoconf.h
BF_fmt.o: BF_fmt.c arch.h misc.h jumbo.h autoconfig.h BF_std.h common.h memory.h formats.h params.h BF_common.h os.h os-autoconf.h
BF_std.o: BF_std.c arch.h common.h memory.h BF_std.h formats.h params.h misc.h jumbo.h autoconfig.h BF_common.h os.h os-autoconf.h
blowfish.o: blowfish.c blowfish.h arch.h bf_tab.h memory.h johnswap.h common.h os.h os-autoconf.h autoconfig.h jumbo.h
BSDI_fmt.o: BSDI_fmt.c arch.h misc.h jumbo.h autoconfig.h DES_std.h common.h memory.h formats.h params.h DES_bs.h loader.h list.h os.h os-autoconf.h
bt.o: bt.c bt_twister.h bt_hash_types.h bt_interface.h memory.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h misc.h
bt_hash_type_128.o: bt_hash_type_128.c bt_hash_types.h bt_interface.h memory.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h misc.h
bt_hash_type_192.o: bt_hash_type_192.c bt_hash_types.h bt_interface.h memory.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h misc.h
bt_hash_type_64.o: bt_hash_type_64.c bt_hash_types.h bt_interface.h memory.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h misc.h
bt_twister.o: bt_twister.c bt_twister.h
c3_fmt.o: c3_fmt.c autoconfig.h options.h list.h loader.h params.h arch.h formats.h misc.h jumbo.h getopt.h common.h memory.h john.h os.h os-autoconf.h john_mpi.h
calc_stat.o: calc_stat.c autoconfig.h memory.h arch.h os.h os-autoconf.h jumbo.h
charset.o: charset.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h misc.h params.h path.h memory.h list.h crc32.h signals.h loader.h formats.h external.h compiler.h charset.h
common.o: common.c arch.h common.h memory.h os.h os-autoconf.h autoconfig.h jumbo.h misc.h base64_convert.h
ifdef WITH_OPENCL
opencl_autotune.o: opencl_autotune.c $(CL_COMMON_HEADER) arch.h misc.h jumbo.h autoconfig.h memory.h common.h formats.h params.h path.h $(CL_DEVICE_HEADER) os.h os-autoconf.h
gpu_common.o: gpu_common.c autoconfig.h Win32-dlfcn-port.h gpu_common.h gpu_sensors.h john.h os.h os-autoconf.h jumbo.h arch.h memory.h params.h logger.h config.h signals.h
opencl_common.o: opencl_common.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h options.h list.h loader.h params.h formats.h misc.h getopt.h common.h memory.h config.h logger.h $(CL_COMMON_HEADER) path.h $(CL_DEVICE_HEADER) mask_ext.h mask.h dyna_salt.h signals.h recovery.h status.h john.h md5.h john_mpi.h
endif
opencl_dynamic_loader.o: opencl_dynamic_loader.c
compiler.o: compiler.c arch.h params.h memory.h compiler.h os.h os-autoconf.h autoconfig.h jumbo.h
config.o: config.c misc.h jumbo.h arch.h autoconfig.h params.h path.h memory.h config.h john.h os.h os-autoconf.h logger.h external.h compiler.h loader.h list.h formats.h
cprepair.o: cprepair.c autoconfig.h unicode.h options.h list.h loader.h params.h arch.h formats.h misc.h jumbo.h getopt.h common.h memory.h os.h os-autoconf.h
cracker.o: cracker.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h misc.h params.h memory.h signals.h idle.h formats.h dyna_salt.h loader.h list.h logger.h status.h recovery.h external.h compiler.h options.h getopt.h common.h mask_ext.h mask.h unicode.h john.h fake_salts.h john_mpi.h path.h gpu_common.h gpu_sensors.h
crc32.o: crc32.c memory.h arch.h crc32.h os.h os-autoconf.h autoconfig.h jumbo.h
md5crypt_common.o: md5crypt_common.c arch.h misc.h jumbo.h autoconfig.h common.h memory.h formats.h params.h md5crypt_common.h os.h os-autoconf.h
DES_bs.o: DES_bs.c arch.h common.h memory.h DES_std.h DES_bs.h loader.h params.h list.h formats.h misc.h jumbo.h autoconfig.h unicode.h options.h getopt.h os.h os-autoconf.h
DES_fmt.o: DES_fmt.c arch.h DES_std.h common.h memory.h formats.h params.h misc.h jumbo.h autoconfig.h DES_bs.h loader.h list.h os.h os-autoconf.h
DES_std.o: DES_std.c arch.h common.h memory.h DES_std.h os.h os-autoconf.h autoconfig.h jumbo.h misc.h
detect.o: detect.c
dmg2john.o: dmg2john.c autoconfig.h arch.h filevault.h misc.h jumbo.h memory.h johnswap.h os.h os-autoconf.h
dummy.o: dummy.c common.h arch.h memory.h formats.h params.h misc.h jumbo.h autoconfig.h options.h list.h loader.h getopt.h os.h os-autoconf.h
dynamic_big_crypt.o: dynamic_big_crypt.c autoconfig.h openssl_local_overrides.h arch.h misc.h jumbo.h common.h memory.h formats.h params.h sha.h aligned.h md4.h md5.h sha2.h jtr_sha2.h johnswap.h stdbool.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h simd-intrinsics-load-flags.h dynamic_types.h gost.h sph_ripemd.h sph_types.h sph_tiger.h sph_haval.h sph_md2.h sph_panama.h sph_skein.h sph_whirlpool.h KeccakHash.h KeccakSponge.h KeccakF-1600-interface.h os.h os-autoconf.h
dynamic_compiler.o: dynamic_compiler.c arch.h common.h memory.h formats.h params.h misc.h jumbo.h autoconfig.h list.h crc32.h johnswap.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h dynamic_compiler.h base64_convert.h md5.h md4.h sha.h sha2.h openssl_local_overrides.h jtr_sha2.h stdbool.h gost.h unicode.h options.h loader.h getopt.h sph_ripemd.h sph_types.h sph_tiger.h sph_whirlpool.h sph_haval.h sph_md2.h sph_panama.h sph_skein.h KeccakHash.h KeccakSponge.h KeccakF-1600-interface.h os.h os-autoconf.h
dynamic_compiler_lib.o: dynamic_compiler_lib.c arch.h formats.h params.h misc.h jumbo.h autoconfig.h dynamic.h simd-intrinsics.h common.h memory.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h dynamic_compiler.h os.h os-autoconf.h
dynamic_fmt.o: dynamic_fmt.c autoconfig.h arch.h simd-intrinsics.h common.h memory.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h misc.h jumbo.h formats.h params.h md5.h md4.h dynamic.h options.h list.h loader.h getopt.h config.h sha.h sha2.h openssl_local_overrides.h jtr_sha2.h johnswap.h stdbool.h gost.h sph_haval.h sph_types.h sph_ripemd.h sph_tiger.h sph_md2.h sph_panama.h sph_skein.h sph_whirlpool.h unicode.h crc32.h fake_salts.h base64_convert.h KeccakHash.h KeccakSponge.h KeccakF-1600-interface.h dynamic_types.h os.h os-autoconf.h
dynamic_parser.o: dynamic_parser.c autoconfig.h arch.h misc.h jumbo.h common.h memory.h formats.h params.h config.h md5.h options.h list.h loader.h getopt.h john.h os.h os-autoconf.h unicode.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h
dynamic_preloads.o: dynamic_preloads.c autoconfig.h arch.h misc.h jumbo.h common.h memory.h formats.h params.h md5.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h options.h list.h loader.h getopt.h config.h os.h os-autoconf.h
dynamic_utils.o: dynamic_utils.c autoconfig.h arch.h misc.h jumbo.h common.h memory.h formats.h params.h config.h md5.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h options.h list.h loader.h getopt.h os.h os-autoconf.h
dyna_salt.o: dyna_salt.c formats.h params.h arch.h misc.h jumbo.h autoconfig.h memory.h dyna_salt.h os.h os-autoconf.h
external.o: external.c misc.h jumbo.h arch.h autoconfig.h params.h os.h os-autoconf.h signals.h compiler.h loader.h list.h formats.h logger.h status.h recovery.h options.h getopt.h common.h memory.h config.h cracker.h john.h external.h mask.h
fake_salts.o: fake_salts.c config.h john.h os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h options.h list.h loader.h params.h formats.h misc.h getopt.h common.h fake_salts.h
formats.o: formats.c params.h arch.h memory.h formats.h misc.h jumbo.h autoconfig.h dyna_salt.h unicode.h options.h list.h loader.h getopt.h common.h base64_convert.h $(CL_COMMON_HEADER) path.h $(CL_DEVICE_HEADER) bench.h os.h os-autoconf.h
fuzz.o: fuzz.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h win32_memmap.h mmap-windows.c memory.h config.h john.h params.h signals.h unicode.h options.h list.h loader.h formats.h misc.h getopt.h common.h
genmkvpwd.o: genmkvpwd.c autoconfig.h jumbo.h arch.h params.h memory.h mkvlib.h os.h os-autoconf.h
getopt.o: getopt.c misc.h jumbo.h arch.h autoconfig.h memory.h list.h getopt.h common.h john.h os.h os-autoconf.h
gost.o: gost.c gost.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h memory.h
gpg2john.o: gpg2john.c autoconfig.h arch.h jumbo.h misc.h os.h os-autoconf.h memory.h
haval.o: haval.c arch.h sph_haval.h sph_types.h autoconfig.h os.h os-autoconf.h jumbo.h memory.h haval_helper.c
haval_helper.o: haval_helper.c
hccap2john.o: hccap2john.c autoconfig.h jumbo.h arch.h os.h os-autoconf.h common.h memory.h
hmacmd5.o: hmacmd5.c arch.h common.h memory.h md5.h hmacmd5.h aligned.h os.h os-autoconf.h autoconfig.h jumbo.h
idle.o: idle.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h params.h config.h options.h list.h loader.h formats.h misc.h getopt.h common.h memory.h signals.h bench.h
inc.o: inc.c arch.h misc.h jumbo.h autoconfig.h params.h path.h memory.h os.h os-autoconf.h signals.h formats.h loader.h list.h logger.h status.h recovery.h options.h getopt.h common.h config.h charset.h external.h compiler.h cracker.h john.h unicode.h mask.h
john_mpi.o: john_mpi.c autoconfig.h john_mpi.h john.h os.h os-autoconf.h jumbo.h arch.h memory.h
jumbo.o: jumbo.c jumbo.h arch.h params.h memory.h os.h os-autoconf.h autoconfig.h
KeccakDuplex.o: KeccakDuplex.c KeccakDuplex.h KeccakF-1600-interface.h os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h
KeccakF-1600-opt64.o: KeccakF-1600-opt64.c brg_endian.h KeccakF-1600-opt64-settings.h KeccakF-1600-interface.h os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h KeccakF-1600-64.macros KeccakF-1600-unrolling.macros
KeccakF-1600-reference32BI.o: KeccakF-1600-reference32BI.c brg_endian.h KeccakF-1600-interface.h
KeccakHash.o: KeccakHash.c KeccakHash.h KeccakSponge.h KeccakF-1600-interface.h os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h
KeccakSponge.o: KeccakSponge.c KeccakSponge.h KeccakF-1600-interface.h os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h
keepass2john.o: keepass2john.c autoconfig.h arch.h missing_getopt.h jumbo.h params.h memory.h os.h os-autoconf.h base64.h sha2.h
bitlocker2john.o: bitlocker2john.c autoconfig.h arch.h missing_getopt.h jumbo.h params.h memory.h os.h os-autoconf.h
list.o: list.c memory.h arch.h list.h os.h os-autoconf.h autoconfig.h jumbo.h
listconf.o: listconf.c autoconfig.h os.h os-autoconf.h jumbo.h arch.h simd-intrinsics.h common.h memory.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h params.h path.h formats.h misc.h options.h list.h loader.h getopt.h unicode.h dynamic.h dynamic_types.h config.h regex.h john_build_rule.h $(CL_COMMON_HEADER) $(CL_DEVICE_HEADER) version.h listconf.h timer.h
LM_fmt.o: LM_fmt.c arch.h misc.h jumbo.h autoconfig.h memory.h DES_bs.h common.h loader.h params.h list.h formats.h os.h os-autoconf.h
loader.o: loader.c mgetl.h autoconfig.h jumbo.h arch.h os.h os-autoconf.h misc.h params.h path.h memory.h list.h signals.h formats.h dyna_salt.h loader.h options.h getopt.h common.h config.h unicode.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h fake_salts.h john.h cracker.h logger.h base64_convert.h showformats.h
logger.o: logger.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h misc.h params.h path.h memory.h status.h options.h list.h loader.h formats.h getopt.h common.h config.h recovery.h unicode.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h john_mpi.h cracker.h signals.h
mask.o: mask.c misc.h jumbo.h arch.h autoconfig.h logger.h recovery.h loader.h params.h list.h formats.h os.h os-autoconf.h signals.h status.h options.h getopt.h common.h memory.h config.h external.h compiler.h cracker.h john.h mask.h unicode.h encoding_data.h mask_ext.h
mask_ext.o: mask_ext.c mask_ext.h mask.h loader.h params.h arch.h list.h formats.h misc.h jumbo.h autoconfig.h options.h getopt.h common.h memory.h os.h os-autoconf.h
md2.o: md2.c sph_md2.h sph_types.h autoconfig.h arch.h os.h os-autoconf.h jumbo.h memory.h
md4.o: md4.c md4.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h memory.h
md5.o: md5.c md5.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h memory.h
MD5_fmt.o: MD5_fmt.c arch.h misc.h jumbo.h autoconfig.h simd-intrinsics.h common.h memory.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h MD5_std.h formats.h params.h md5crypt_common.h os.h os-autoconf.h
MD5_std.o: MD5_std.c arch.h common.h memory.h MD5_std.h os.h os-autoconf.h autoconfig.h jumbo.h
md5crypt_long_fmt.o: md5crypt_long_fmt.c md5crypt_common.h md5.h arch.h misc.h jumbo.h autoconfig.h common.h memory.h formats.h params.h omp_autotune.h options.h list.h loader.h getopt.h john_mpi.h common-get-hash.h
md_helper.o: md_helper.c
mmap-windows.o: mmap-windows.c mem_map.h
memory.o: memory.c arch.h misc.h jumbo.h autoconfig.h memory.h common.h johnswap.h os.h os-autoconf.h
misc.o: misc.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h logger.h params.h misc.h options.h list.h loader.h formats.h getopt.h common.h memory.h john_mpi.h
missing_getopt.o: missing_getopt.c missing_getopt.h os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h
mkv.o: mkv.c arch.h misc.h jumbo.h autoconfig.h params.h path.h memory.h os.h os-autoconf.h signals.h formats.h loader.h list.h logger.h status.h recovery.h config.h charset.h external.h compiler.h cracker.h options.h getopt.h common.h john.h mkv.h mkvlib.h mask.h
subsets.o: subsets.c subsets.h unicode_range.h loader.h cracker.h options.h logger.h status.h recovery.h
unicode_range.o: unicode_range.c unicode_range.h
$(CC) $(CFLAGS) $(OPT_NORMAL) -O0 unicode_range.c
mkvcalcproba.o: mkvcalcproba.c autoconfig.h params.h arch.h mkvlib.h memory.h jumbo.h os.h os-autoconf.h
mkvlib.o: mkvlib.c arch.h misc.h jumbo.h autoconfig.h params.h memory.h mkvlib.h path.h os.h os-autoconf.h
mmap-windows.o: mmap-windows.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h
nonstd.o: nonstd.c
omp_autotune.o: timer.h
options.o: options.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h misc.h params.h memory.h list.h loader.h formats.h logger.h status.h recovery.h options.h getopt.h common.h bench.h external.h compiler.h john.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h unicode.h fake_salts.h path.h regex.h john_mpi.h $(CL_COMMON_HEADER) $(CL_DEVICE_HEADER) prince.h version.h listconf.h john_build_rule.h
panama.o: panama.c sph_panama.h sph_types.h autoconfig.h arch.h os.h os-autoconf.h jumbo.h memory.h
params.o: params.c params.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h memory.h
path.o: path.c autoconfig.h misc.h jumbo.h arch.h params.h memory.h path.h os.h os-autoconf.h
pkzip.o: pkzip.c arch.h misc.h jumbo.h autoconfig.h common.h memory.h formats.h params.h pkzip.h dyna_salt.h crc32.h os.h os-autoconf.h
putty2john.o: putty2john.c autoconfig.h memory.h arch.h jumbo.h os.h os-autoconf.h
racf2john.o: racf2john.c autoconfig.h jumbo.h arch.h memory.h os.h os-autoconf.h
rar2john.o: rar2john.c jumbo.h arch.h common.h memory.h params.h crc32.h unicode.h options.h autoconfig.h list.h loader.h formats.h misc.h getopt.h base64_convert.h sha2.h aligned.h openssl_local_overrides.h md4.h md5.h jtr_sha2.h johnswap.h stdbool.h rar2john.h missing_getopt.h os.h os-autoconf.h
rar_common.o: rar_common.c
raw2dyna.o: raw2dyna.c autoconfig.h os.h os-autoconf.h jumbo.h arch.h memory.h
rc4.o: rc4.c rc4.h arch.h os.h os-autoconf.h autoconfig.h jumbo.h memory.h
recovery.o: recovery.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h misc.h params.h path.h memory.h config.h options.h list.h loader.h formats.h getopt.h common.h logger.h status.h recovery.h john.h mask.h unicode.h john_mpi.h signals.h
regex.o: regex.c regex.h autoconfig.h loader.h params.h arch.h list.h formats.h misc.h jumbo.h logger.h status.h os.h os-autoconf.h signals.h recovery.h options.h getopt.h common.h memory.h config.h cracker.h john.h external.h compiler.h
ripemd.o: ripemd.c sph_ripemd.h sph_types.h autoconfig.h arch.h os.h os-autoconf.h jumbo.h memory.h md_helper.c
rpp.o: rpp.c arch.h params.h config.h rpp.h common.h memory.h os.h os-autoconf.h autoconfig.h jumbo.h
rules.o: rules.c rules_init_classes.h rules_init_convs.h arch.h misc.h jumbo.h autoconfig.h params.h common.h memory.h formats.h loader.h list.h logger.h rpp.h config.h rules.h options.h getopt.h john.h os.h os-autoconf.h unicode.h encoding_data.h
sboxes.o: sboxes.c nonstd.c
sboxes-s.o: sboxes-s.c
scrypt_fmt.o: scrypt_fmt.c yescrypt/yescrypt.h arch.h misc.h jumbo.h autoconfig.h common.h memory.h formats.h params.h base64_convert.h os.h os-autoconf.h
showformats.o: showformats.c showformats.h loader.h options.h config.h dynamic.h
sha1.o: sha1.c sph_sha1.h
sha2.o: sha2.c arch.h sha2.h aligned.h openssl_local_overrides.h md4.h md5.h jtr_sha2.h johnswap.h common.h memory.h stdbool.h params.h os.h os-autoconf.h autoconfig.h jumbo.h
signals.o: signals.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h misc.h params.h tty.h options.h list.h loader.h formats.h getopt.h common.h memory.h config.h bench.h john.h status.h signals.h john_mpi.h
simd-intrinsics.o: simd-intrinsics.c arch.h pseudo_intrinsics.h aligned.h common.h memory.h md5.h MD5_std.h johnswap.h simd-intrinsics-load-flags.h misc.h jumbo.h autoconfig.h os.h os-autoconf.h
single.o: single.c misc.h jumbo.h arch.h autoconfig.h params.h common.h memory.h os.h os-autoconf.h signals.h loader.h list.h formats.h logger.h status.h recovery.h options.h getopt.h rpp.h config.h rules.h external.h compiler.h cracker.h john.h unicode.h
SIPdump.o: SIPdump.c autoconfig.h tcphdr.h arch.h SIPdump.h os.h os-autoconf.h jumbo.h memory.h
skein.o: skein.c sph_skein.h sph_types.h autoconfig.h arch.h os.h os-autoconf.h jumbo.h memory.h
status.o: status.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h times.h misc.h params.h cracker.h loader.h list.h formats.h options.h getopt.h common.h memory.h status.h bench.h config.h unicode.h signals.h mask.h john_mpi.h gpu_common.h gpu_sensors.h
symlink.o: symlink.c
tgtsnarf.o: tgtsnarf.c autoconfig.h memory.h arch.h os.h os-autoconf.h jumbo.h common.h
tiger.o: tiger.c sph_tiger.h sph_types.h autoconfig.h arch.h os.h os-autoconf.h jumbo.h memory.h md_helper.c
timer.o: timer.c timer.h os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h
trip_fmt.o: trip_fmt.c arch.h DES_std.h common.h memory.h formats.h params.h misc.h jumbo.h autoconfig.h DES_bs.h loader.h list.h os.h os-autoconf.h
tty.o: tty.c arch.h tty.h os.h os-autoconf.h autoconfig.h jumbo.h memory.h
uaf2john.o: uaf2john.c uaf_encode.h uaf_raw.h os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h
uaf_encode.o: uaf_encode.c arch.h uaf_raw.h uaf_encode.h os.h os-autoconf.h autoconfig.h jumbo.h memory.h uaf_hash.c uaf_encode.c
uaf_hash.o: uaf_hash.c uaf_encode.c arch.h uaf_raw.h uaf_encode.h os.h os-autoconf.h autoconfig.h jumbo.h memory.h uaf_hash.c
unafs.o: unafs.c misc.h jumbo.h arch.h autoconfig.h os.h os-autoconf.h memory.h
undrop.o: undrop.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h memory.h
unicode.o: unicode.c common.h arch.h memory.h byteorder.h unicode.h options.h autoconfig.h list.h loader.h params.h formats.h misc.h jumbo.h getopt.h UnicodeData.h encoding_data.h config.h md4.h john.h os.h os-autoconf.h
unique.o: unique.c autoconfig.h arch.h misc.h jumbo.h params.h memory.h os.h os-autoconf.h
unrar.o: unrar.c arch.h unrar.h aes.h autoconfig.h aes/aes_func.h unrarhlp.h memory.h jumbo.h unrarppm.h unrarvm.h unrarcmd.h unrarfilter.h os.h os-autoconf.h
unrarcmd.o: unrarcmd.c aes.h autoconfig.h aes/aes_func.h unrar.h arch.h unrarhlp.h memory.h jumbo.h unrarppm.h unrarvm.h unrarcmd.h unrarfilter.h os.h os-autoconf.h
unrarfilter.o: unrarfilter.c arch.h aes.h autoconfig.h aes/aes_func.h unrar.h unrarhlp.h memory.h jumbo.h unrarppm.h unrarvm.h unrarcmd.h unrarfilter.h os.h os-autoconf.h
unrarhlp.o: unrarhlp.c jumbo.h arch.h unrarhlp.h memory.h os.h os-autoconf.h autoconfig.h
unrarvm.o: unrarvm.c arch.h aes.h autoconfig.h aes/aes_func.h unrar.h unrarhlp.h memory.h jumbo.h unrarppm.h unrarvm.h unrarcmd.h unrarfilter.h common.h os.h os-autoconf.h
unshadow.o: unshadow.c misc.h jumbo.h arch.h autoconfig.h params.h memory.h os.h os-autoconf.h
vncpcap2john.o: vncpcap2john.c autoconfig.h cygwin_ethernet.h arch.h tcphdr.h os.h os-autoconf.h jumbo.h memory.h
eapmd5tojohn.o: eapmd5tojohn.c arch.h os.h os-autoconf.h jumbo.h memory.h
whirlpool.o: whirlpool.c sph_whirlpool.h sph_types.h autoconfig.h arch.h os.h os-autoconf.h jumbo.h memory.h md_helper.c
win32_memmap.o: win32_memmap.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h win32_memmap.h misc.h memory.h
wordlist.o: wordlist.c mgetl.h autoconfig.h os.h os-autoconf.h jumbo.h arch.h mem_map.h win32_memmap.h mmap-windows.c memory.h misc.h params.h common.h path.h signals.h loader.h list.h formats.h logger.h status.h recovery.h options.h getopt.h rpp.h config.h rules.h external.h compiler.h cracker.h john.h unicode.h regex.h mask.h pseudo_intrinsics.h aligned.h
wpapcap2john.o: wpapcap2john.c wpapcap2john.h arch.h johnswap.h common.h memory.h jumbo.h os.h os-autoconf.h autoconfig.h
x86-64.o: x86-64.S arch.h
x86-mmx.o: x86-mmx.S arch.h
x86-sse.o: x86-sse.S arch.h
x86.o: x86.S arch.h
zip2john.o: zip2john.c arch.h common.h memory.h jumbo.h formats.h params.h misc.h autoconfig.h pkzip.h dyna_salt.h crc32.h missing_getopt.h os.h os-autoconf.h
######## End auto-generated
princeprocessor:
$(CC) @CFLAGS@ @JOHN_NO_SIMD@ @CFLAGS_EXTRA@ @OPENSSL_CFLAGS@ @OPENMP_CFLAGS@ @HAVE_MPI@ @PTHREAD_CFLAGS@ $(CPPFLAGS) $(OPT_NORMAL) -std=c99 -DLINUX pp.c $(LDFLAGS) -o ../run/pp
pp.o: pp.c autoconfig.h arch.h mem_map.h os.h os-autoconf.h jumbo.h mmap-windows.c memory.h mpz_int128.h int128.h misc.h config.h params.h common.h path.h signals.h loader.h list.h formats.h logger.h status.h recovery.h options.h getopt.h external.h compiler.h cracker.h john.h unicode.h prince.h rpp.h rules.h mask.h
$(CC) $(CFLAGS) $(OPT_NORMAL) -DJTR_MODE -std=c99 -c pp.c
version.h: find_version
find_version:
echo "#define JTR_GIT_VERSION $(JTR_GIT_VERSION)" > version.h.new
diff >/dev/null 2>/dev/null version.h.new version.h && $(RM) version.h.new || $(MV) version.h.new version.h
SUBDIRS = aes secp256k1 ed25519-donna poly1305-donna @ZTEX_SUBDIRS@
.PHONY: subdirs $(SUBDIRS) find_version
subdirs: $(SUBDIRS)
$(SUBDIRS):
$(MAKE) -C $@ all
# Inlining the S-boxes produces faster code as long as they fit in the cache.
DES_bs_b.o: DES_bs_b.c arch.h common.h memory.h DES_bs.h loader.h params.h list.h formats.h misc.h jumbo.h autoconfig.h os.h os-autoconf.h sboxes-s.c sboxes.c nonstd.c
$(CC) $(CFLAGS) $(OPT_INLINE) DES_bs_b.c
miscnl.o: misc.c
$(CC) $(CFLAGS) $(OPT_NORMAL) -D_JOHN_MISC_NO_LOG misc.c -o miscnl.o
aes/aes.a:
$(MAKE) -C aes all
secp256k1/secp256k1.a:
$(MAKE) -C secp256k1 all
ed25519-donna/ed25519-donna.a:
$(MAKE) -C ed25519-donna all
poly1305-donna/poly1305-donna.a:
$(MAKE) -C poly1305-donna all
###############################################################################
# Process targets. Note, these are *nix targets, but also work fine under
# cygwin. The only problem with cygwin, is that the ln -s will NOT generate
# a valid exe which can be run under native Win32 cmd shell
# If a use wants that behavior, then run configure, with --enable-ln-s
# By default, it is set to cygwin will use the .EXE symlink.c building,
# where the macro EXE_EXT is .exe. Mingw builds always set EXE_EXT to .exe
###############################################################################
# PTHREAD_CFLAGS and OPENMP_CFLAGS may actually contain linker options,
# like -fopenmp
../run/john@EXE_EXT@: $(JOHN_OBJS) aes/aes.a secp256k1/secp256k1.a ed25519-donna/ed25519-donna.a poly1305-donna/poly1305-donna.a @ZTEX_SUBDIRS@
$(LD) $(JOHN_OBJS) $(LDFLAGS) @OPENSSL_LIBS@ @OPENMP_CFLAGS@ @GMP_LIBS@ @SKEY_LIBS@ @REXGEN_LIBS@ @CL_LIBS@ @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ @M_LIBS@ @RT_LIBS@ @Z_LIBS@ @DL_LIBS@ @CRYPT_LIBS@ @BZ2_LIBS@ @ZTEX_LIBS@ aes/aes.a secp256k1/secp256k1.a ed25519-donna/ed25519-donna.a poly1305-donna/poly1305-donna.a -o $@
../run/unshadow: ../run/john
$(RM) ../run/unshadow
$(LN) john ../run/unshadow
../run/unafs: ../run/john
$(RM) ../run/unafs
$(LN) john ../run/unafs
../run/undrop: ../run/john
$(RM) ../run/undrop
$(LN) john ../run/undrop
../run/zip2john: ../run/john
$(RM) ../run/zip2john
$(LN) john ../run/zip2john
../run/gpg2john: ../run/john
$(RM) ../run/gpg2john
$(LN) john ../run/gpg2john
../run/rar2john: ../run/john
$(RM) ../run/rar2john
$(LN) john ../run/rar2john
../run/base64conv: ../run/john
$(RM) ../run/base64conv
$(LN) john ../run/base64conv
../run/unique: ../run/john
$(RM) ../run/unique
$(LN) john ../run/unique
#####################################################################
# These targets MUST match ALL of the john targets that use ln -s
# These are built for Win32, so that we have a 'native' symlink back
# to the john exe. The john exe is still built fat, but there is no
# workable ln -s, so we have built a 'symlink.c' file. It works in
# a limited way, like symlink. Mingw and default cygwin use these.
# cygwin can override this within ./configure using --enable-ln-s
#####################################################################
../run/unshadow.exe: symlink.c
$(CC) symlink.c -o ../run/unshadow.exe
$(STRIP) ../run/unshadow.exe
../run/unafs.exe: symlink.c
$(CC) symlink.c -o ../run/unafs.exe
$(STRIP) ../run/unafs.exe
../run/undrop.exe: symlink.c
$(CC) symlink.c -o ../run/undrop.exe
$(STRIP) ../run/undrop.exe
../run/zip2john.exe: symlink.c
$(CC) symlink.c -o ../run/zip2john.exe
$(STRIP) ../run/zip2john.exe
../run/gpg2john.exe: symlink.c
$(CC) symlink.c -o ../run/gpg2john.exe
$(STRIP) ../run/gpg2john.exe
../run/rar2john.exe: symlink.c
$(CC) symlink.c -o ../run/rar2john.exe
$(STRIP) ../run/rar2john.exe
../run/base64conv.exe: symlink.c
$(CC) symlink.c -o ../run/base64conv.exe
$(STRIP) ../run/base64conv.exe
../run/unique.exe: symlink.c
$(CC) symlink.c -o ../run/unique.exe
$(STRIP) ../run/unique.exe
########################################################
# Not linked to symlink for a .exe file, so simply make
# single targets, using the EXE_EXT macro
########################################################
../run/genmkvpwd@EXE_EXT@: $(GENMKVPWD_OBJS)
$(LD) $(GENMKVPWD_OBJS) $(LDFLAGS) @M_LIBS@ @OPENMP_CFLAGS@ -o $@
../run/mkvcalcproba@EXE_EXT@: mkvcalcproba.o
$(LD) mkvcalcproba.o $(LDFLAGS) @M_LIBS@ @OPENMP_CFLAGS@ -o $@
../run/calc_stat@EXE_EXT@: calc_stat.o
$(LD) calc_stat.o $(LDFLAGS) @M_LIBS@ @OPENMP_CFLAGS@ -o $@
../run/raw2dyna@EXE_EXT@: raw2dyna.o
$(LD) raw2dyna.o $(LDFLAGS) @OPENMP_CFLAGS@ -o $@
../run/SIPdump@EXE_EXT@: SIPdump.o
$(LD) SIPdump.o $(LDFLAGS) @PCAP_LIBS@ @OPENMP_CFLAGS@ -o $@
../run/vncpcap2john@EXE_EXT@: vncpcap2john.o
$(CC) -DAC_BUILT -Wall vncpcap2john.o $(LDFLAGS) @PCAP_LIBS@ @OPENMP_CFLAGS@ -o $@
../run/eapmd5tojohn@EXE_EXT@: eapmd5tojohn.o
$(CC) -DAC_BUILT -Wall eapmd5tojohn.o $(LDFLAGS) @PCAP_LIBS@ @OPENMP_CFLAGS@ -o $@
../run/uaf2john@EXE_EXT@: uaf2john.o uaf_encode.o
$(LD) $(LDFLAGS) @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ uaf2john.o uaf_encode.o @OPENMP_CFLAGS@ -o $@
../run/keepass2john@EXE_EXT@: keepass2john.c jumbo.c base64_convert.c misc.c common.c memory.c sha2.o
$(CC) -DAC_BUILT -Wall -O2 @CPPFLAGS@ @CFLAGS@ @OPENSSL_CFLAGS@ @CFLAGS_EXTRA@ @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ keepass2john.c jumbo.c base64_convert.c -D_JOHN_MISC_NO_LOG misc.c common.c memory.c sha2.o $(LDFLAGS) @OPENMP_CFLAGS@ @OPENSSL_LIBS@ -o $@
../run/dmg2john@EXE_EXT@: dmg2john.o jumbo.o
$(LD) $(LDFLAGS) @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ dmg2john.o jumbo.o @OPENMP_CFLAGS@ -o $@
../run/bitlocker2john@EXE_EXT@: bitlocker2john.c jumbo.c base64_convert.c misc.c common.o memory.c
$(CC) -DAC_BUILT -Wall -O2 @CPPFLAGS@ @CFLAGS@ @OPENSSL_CFLAGS@ @CFLAGS_EXTRA@ @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ bitlocker2john.c jumbo.c base64_convert.c -D_JOHN_MISC_NO_LOG misc.c common.c memory.c $(LDFLAGS) @OPENMP_CFLAGS@ @OPENSSL_LIBS@ -o $@
../run/racf2john@EXE_EXT@: racf2john.o jumbo.o
$(LD) $(LDFLAGS) @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ racf2john.o jumbo.o @OPENMP_CFLAGS@ -o $@
../run/hccap2john@EXE_EXT@: hccap2john.o common.o jumbo.o
$(LD) $(LDFLAGS) @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ common.o hccap2john.o jumbo.o @OPENMP_CFLAGS@ -o $@
../run/putty2john@EXE_EXT@: putty2john.o jumbo.o
$(LD) $(LDFLAGS) @PTHREAD_CFLAGS@ @PTHREAD_LIBS@ putty2john.o jumbo.o @OPENMP_CFLAGS@ -o $@
# Note that this is NOT depending on PCAP lib. It is self-contained.
../run/wpapcap2john@EXE_EXT@: wpapcap2john.o jumbo.o
$(LD) $(LDFLAGS) wpapcap2john.o jumbo.o @OPENMP_CFLAGS@ -o $@
# Note, this one is NOT build by default. To get it, do a make ../run/dynacomptest (or ../run/dynacomptest.exe for cygwin/mingw builds)
../run/dynacomptest@EXE_EXT@: dynamic_compiler.c dynamic_compiler_lib.c dynamic_utils.c misc.c unicode.c base64_convert.o base64.o common.o crc32.o KeccakDuplex.o KeccakF-1600-opt64.o KeccakHash.o KeccakSponge.o gost.o jumbo.o memory.o ripemd.o tiger.o haval.o skein.o md2.o panama.o whirlpool.o sha1.o sha2.o
$(CC) -DAC_BUILT -Wall -O2 @CPPFLAGS@ @CFLAGS@ @CFLAGS_EXTRA@ @OPENSSL_CFLAGS@ @OPENMP_CFLAGS@ -DWITH_MAIN -D_JOHN_MISC_NO_LOG -DUNICODE_NO_OPTIONS dynamic_compiler.c dynamic_compiler_lib.c dynamic_utils.c misc.c unicode.c base64_convert.o base64.o common.o crc32.o KeccakDuplex.o KeccakF-1600-opt64.o KeccakHash.o KeccakSponge.o gost.o jumbo.o memory.o ripemd.o tiger.o haval.o skein.o md2.o panama.o whirlpool.o sha1.o sha2.o $(LDFLAGS) @OPENSSL_LIBS@ -o $@
../run/cprepair@EXE_EXT@: cprepair.c autoconfig.h unicode.c unicode.h options.h misc.h misc.c
$(CC) -DAC_BUILT -Wall -O3 @CFLAGS_EXTRA@ @OPENSSL_CFLAGS@ -DNOT_JOHN -D_JOHN_MISC_NO_LOG $(CPPFLAGS) cprepair.c unicode.c misc.c memory.c -o $@
../run/tgtsnarf@EXE_EXT@: tgtsnarf.o
$(LD) tgtsnarf.o $(LDFLAGS) @OPENMP_CFLAGS@ -o $@
john.o: john.c autoconfig.h os.h os-autoconf.h jumbo.h arch.h params.h openssl_local_overrides.h misc.h path.h memory.h list.h tty.h signals.h common.h idle.h formats.h dyna_salt.h loader.h logger.h status.h recovery.h options.h getopt.h config.h bench.h fuzz.h charset.h single.h wordlist.h prince.h inc.h mask.h mkv.h mkvlib.h external.h compiler.h batch.h dynamic.h simd-intrinsics.h pseudo_intrinsics.h aligned.h simd-intrinsics-load-flags.h dynamic_compiler.h fake_salts.h listconf.h crc32.h john_mpi.h regex.h unicode.h $(CL_COMMON_HEADER) $(CL_DEVICE_HEADER) john_build_rule.h fmt_externs.h fmt_registers.h subsets.h
$(CC) $(CFLAGS_MAIN) $(OPT_NORMAL) -O1 $*.c
path.o: path.c path.h autoconfig.h arch.h params.h misc.h memory.h
$(CC) $(CFLAGS_MAIN) $(OPT_NORMAL) -O1 $*.c
# Workaround for gcc 3.4.6 (seen on Sparc32) (do not use -funroll-loops)
unrarppm.o: unrarppm.c arch.h aes.h autoconfig.h aes/aes_func.h unrar.h unrarhlp.h memory.h jumbo.h unrarppm.h unrarvm.h unrarcmd.h unrarfilter.h common.h os.h os-autoconf.h
$(CC) -DAC_BUILT $(CFLAGS) $< -o $@
.c.o:
$(CC) $(CFLAGS) $(OPT_NORMAL) $< -o $@
.S.o:
$(AS) $(ASFLAGS) $*.S
../run/oui.txt:
cd ../run && wget http://standards-oui.ieee.org/oui.txt
# For jumbo, --make_check fails for the first thin format that is linked
# to a dynamic format in a config file, so we deviate from core here.
check: default
../run/john --list=build-info
$(MAKE) unit-tests
../run/john --test=0 --verbosity=2 --format=cpu
../run/john --test=0 --verbosity=2 --format=+dynamic,all
if [ -x /usr/bin/md5sum ]; then \
JOHN=../run/john tests/test_externals.sh | md5sum -c tests/test_externals.md5; \
fi
depend:
makedepend -fMakefile.dep -Y *.c 2>> /dev/null
test: default
cd ../test && perl jtrts.pl -q
test_full: default
cd ../test && perl jtrts.pl -q -type full
test_utf8: default
cd ../test && perl jtrts.pl -q -type utf-8
test_verbose: default
cd ../test && perl jtrts.pl
test_full_verbose: default
cd ../test && perl jtrts.pl -type full
test_utf8_verbose: default
cd ../test && perl jtrts.pl -type utf-8
testfiles:
../run/john --list=format-tests -format=cpu | LC_ALL=C cut -f3 > all_tests.in
../run/john --list=format-tests -format=cpu | LC_ALL=C cut -f4 > all_tests.lst
###############################################################################
# unit-tests target. Note, this is a stand along target. It builds and tests
# some unique tests, against john 'common' codebase. Source files like misc.c
# common.c, etc have a test suite file built to test each one. Code such as
# compiler.c/external.c have special test suite john.conf files, where we run
# the 'real' john against them, and expect certain results. Test cases will
# be added to the john-tc.conf file as needed when any issue shows up
# same type thing for testing base64_convert.c which contains it's own ST
# code, and for dynamic, which has the dynamic test suite.
###############################################################################
UNIT_TEST_OBJS = \
tests/unit-tests.o tests/misc.o tests/common.o tests/memory.o tests/sha2.o
tests/unit-tests.o: tests/unit-tests.c common.h memory.h misc.h
$(CC) -o tests/unit-tests.o $(CFLAGS) -DFORCE_GENERIC_SHA2 -D_JOHN_MISC_NO_LOG tests/unit-tests.c
tests/sha2.o: sha2.c arch.h sha2.h aligned.h openssl_local_overrides.h md4.h md5.h jtr_sha2.h johnswap.h common.h memory.h stdbool.h params.h os.h os-autoconf.h autoconfig.h jumbo.h
$(CC) -o tests/sha2.o $(CFLAGS) -DFORCE_GENERIC_SHA2 -D_JOHN_MISC_NO_LOG sha2.c
tests/misc.o: misc.c os.h os-autoconf.h autoconfig.h jumbo.h arch.h logger.h params.h misc.h options.h list.h loader.h formats.h getopt.h common.h memory.h john_mpi.h
$(CC) -o tests/misc.o $(CFLAGS) -D_JOHN_MISC_NO_LOG misc.c
tests/common.o: common.c arch.h common.h memory.h os.h os-autoconf.h autoconfig.h jumbo.h misc.h base64_convert.h
$(CC) -o tests/common.o $(CFLAGS) -D_JOHN_MISC_NO_LOG common.c
tests/memory.o: memory.c arch.h misc.h jumbo.h autoconfig.h memory.h common.h johnswap.h os.h os-autoconf.h
$(CC) -o tests/memory.o $(CFLAGS) -D_JOHN_MISC_NO_LOG memory.c
# keep the 'easy name' build target of unit-tests The 'real' target is ../run/unit-tests[.exe]
unit-tests: ../run/unit-tests@EXE_EXT@
../run/unit-tests@EXE_EXT@: $(UNIT_TEST_OBJS)
$(LD) $(UNIT_TEST_OBJS) $(LDFLAGS) @OPENSSL_LIBS@ -o $@
@ echo "Now Running the Unit Tests"
@ ${POSSIBLE_WINE_MSG}
@ ${POSSIBLE_WINE_ENV}
@ ${POSSIBLE_WINE} ../run/unit-tests@EXE_EXT@
@ # Extra testing past the unit-tests code commented out for now until I figure out how best to do this.
@ # echo "Now Testing john 'external' mode"
@ # ../run/john -conf=tests/john-tc.conf -stdout -extern=double 2> /dev/null > tests/external.tst
@ # diff tests/external.expect tests/external.tst
@ # rm tests/external.tst
###############################################################################
bash-completion:
[ -d $(DESTDIR)/etc/bash_completion.d ] && $(CP) ../run/john.bash_completion $(DESTDIR)/etc/bash_completion.d/ || true
[ -d $(DESTDIR)/usr/local/etc/bash_completion.d ] && $(CP) ../run/john.bash_completion $(DESTDIR)/usr/local/etc/bash_completion.d/ || true
[ -d $(DESTDIR)/opt/local/etc/bash_completion.d ] && $(CP) ../run/john.bash_completion $(DESTDIR)/opt/local/etc/bash_completion.d/ || true
[ -d $(DESTDIR)/opt/homebrew/etc/bash_completion.d ] && $(CP) ../run/john.bash_completion $(DESTDIR)/opt/homebrew/etc/bash_completion.d/ || true
@echo Bash-completion for JtR opportunistically installed.
@echo Source \". ../run/john.bash_completion\" or logout/login to activate the changes
zsh-completion:
[ -d $(DESTDIR)/usr/share/zsh/functions/Completion/Unix ] && $(CP) ../run/john.zsh_completion $(DESTDIR)/usr/share/zsh/functions/Completion/Unix/_john || true
[ -d $(DESTDIR)/usr/share/zsh/site-functions ] && $(CP) ../run/john.zsh_completion $(DESTDIR)/usr/share/zsh/site-functions/_john || true
[ -d $(DESTDIR)/usr/local/share/zsh/site-functions ] && $(CP) ../run/john.zsh_completion $(DESTDIR)/usr/local/share/zsh/site-functions/_john || true
@echo zsh-completion for JtR opportunistically installed.
@echo Source \". ../run/john.zsh_completion\" or logout/login to activate the changes
shell-completion: bash-completion zsh-completion
kernel-cache-clean-nvidia:
$(RM) -fr ~/.nv/ComputeCache
kernel-cache-clean-john:
$(RM) -f ../run/opencl/*.bin ../run/opencl/*.config
kernel-cache-clean: kernel-cache-clean-nvidia kernel-cache-clean-john
clean:
$(RM) $(PROJ)
@for exe in ${PROJ}; do \
($(RM) $$exe.exe) \
done
$(RM) ../run/unit-tests@EXE_EXT@
$(RM) john-macosx-* *.o yescrypt/*.o *.bak core
$(RM) lzma/*.o
$(RM) tests/*.o
$(RM) detect bench generic.h tmp.s
$(RM) *~
$(CP) $(NULL) Makefile.dep
@for dir in ${subdirs}; do \
(cd $$dir && $(MAKE) clean) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
# These are mostly for internal use.
charsets: ../run/ascii.chr ../run/alpha.chr ../run/lowernum.chr ../run/uppernum.chr ../run/lowerspace.chr ../run/lower.chr ../run/upper.chr ../run/digits.chr ../run/alnum.chr ../run/lanman.chr ../run/lm_ascii.chr ../run/alnumspace.chr ../run/latin1.chr ../run/utf8.chr
../run/ascii.chr: charset.c params.h
../run/john -make-charset=../run/ascii.chr -pot:rockyou.ansi.pot -ext:filter_ascii
../run/alpha.chr: charset.c params.h
../run/john -make-charset=../run/alpha.chr -pot:rockyou.ansi.pot -ext:filter_alpha
../run/lowernum.chr: charset.c params.h
../run/john -make-charset=../run/lowernum.chr -pot:rockyou.ansi.pot -ext:filter_lowernum
../run/uppernum.chr: charset.c params.h
../run/john -make-charset=../run/uppernum.chr -pot:rockyou.ansi.pot -ext:filter_uppernum
../run/lowerspace.chr: charset.c params.h
../run/john -make-charset=../run/lowerspace.chr -pot:rockyou.ansi.pot -ext:filter_lowerspace
../run/lower.chr: charset.c params.h
../run/john -make-charset=../run/lower.chr -pot:rockyou.ansi.pot -ext:filter_lower
../run/upper.chr: charset.c params.h
../run/john -make-charset=../run/upper.chr -pot:rockyou.ansi.pot -ext:filter_upper
../run/digits.chr: charset.c params.h
../run/john -make-charset=../run/digits.chr -pot:rockyou.ansi.pot -ext:filter_digits
../run/alnum.chr: charset.c params.h
../run/john -make-charset=../run/alnum.chr -pot:rockyou.ansi.pot -ext:filter_alnum
../run/lanman.chr: charset.c params.h
../run/john -make-charset=../run/lanman.chr -pot:rockyou.lm850.pot -ext:filter_lanman
../run/lm_ascii.chr: charset.c params.h
../run/john -make-charset=../run/lm_ascii.chr -pot:rockyou.lm850.pot -ext:filter_lm_ascii
../run/alnumspace.chr: charset.c params.h
../run/john -make-charset=../run/alnumspace.chr -pot:rockyou.ansi.pot -ext:filter_alnumspace
../run/latin1.chr: charset.c params.h
../run/john -make-charset=../run/latin1.chr -pot:rockyou.ansi.16.pot
../run/utf8.chr: charset.c params.h
../run/john -make-charset=../run/utf8.chr -pot:rockyou.utf8.24.pot
#######################################################################
## NOTE, auto re-building configure will ONLY happen IF the user has ##
## CONFIG_MAINT=1 environment variable. Beware. ##
#######################################################################
M4_INCLUDES=@M4_INCLUDES@
## automatic re-running of configure if the configure.ac file has changed
ifeq ($(CONFIG_MAINT), 1)
configure: configure.ac
autoconf
else
configure: configure.ac
@touch configure
endif
# autoheader might not change autoconfig.h.in, so touch a stamp file
ifeq ($(CONFIG_MAINT), 1)
autoconfig.h.in: autoconfig-stamp-h-in
autoconfig-stamp-h-in: configure.ac $(M4_INCLUDES)
autoheader
echo "timestamp from Makefile" > autoconfig-stamp-h-in
else
autoconfig.h.in: autoconfig-stamp-h-in
autoconfig-stamp-h-in: configure.ac $(M4_INCLUDES)
echo "timestamp from Makefile" > autoconfig-stamp-h-in
endif
ifeq ($(CONFIG_MAINT), 1)
autoconfig.h: autoconfig-stamp-h
autoconfig-stamp-h: autoconfig.h.in config.status
./config.status
else
autoconfig.h: autoconfig-stamp-h
autoconfig-stamp-h: autoconfig.h.in config.status
@touch config.status
@touch autoconfig.h.in
@touch autoconfig-stamp-h
@touch autoconfig.h
endif
ifeq ($(CONFIG_MAINT), 1)
Makefile: Makefile.in config.status
./config.status
endif
ifeq ($(CONFIG_MAINT), 1)
config.status: configure
./config.status --recheck
endif
all:
@for dir in ${subdirs}; do \
(cd $$dir && $(MAKE) all) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
distclean: clean
$(RM) -r autom4te.cache
@for dir in ${subdirs}; do \
(cd $$dir && $(MAKE) distclean) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; \
done && test -z "$$fail"
$(RM) Makefile autoconfig.h config.status config.cache \
config.log autoconfig-stamp-h autoconfig-stamp-h-in stamp-h1
$(LN) Makefile.stub Makefile
$(RM) arch.h
$(RM) fmt_registers.h fmt_externs.h dynamic_big_crypt.c john_build_rule.h version.h version.h.new
strip: default
@echo Stripping executables.
$(STRIP) $(PROJ)