You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: include/types.h
+88-91Lines changed: 88 additions & 91 deletions
Original file line number
Diff line number
Diff line change
@@ -421,108 +421,105 @@ typedef enum opti_type
421
421
422
422
typedefenumopts_type
423
423
{
424
-
OPTS_TYPE_PT_UTF16LE= (1ULL << 0),
425
-
OPTS_TYPE_PT_UTF16BE= (1ULL << 1),
426
-
OPTS_TYPE_PT_UPPER= (1ULL << 2),
427
-
OPTS_TYPE_PT_LOWER= (1ULL << 3),
428
-
OPTS_TYPE_PT_ADD01= (1ULL << 4),
429
-
OPTS_TYPE_PT_ADD02= (1ULL << 5),
430
-
OPTS_TYPE_PT_ADD80= (1ULL << 6),
431
-
OPTS_TYPE_PT_ADDBITS14= (1ULL << 7),
432
-
OPTS_TYPE_PT_ADDBITS15= (1ULL << 8),
433
-
OPTS_TYPE_PT_GENERATE_LE= (1ULL << 9),
434
-
OPTS_TYPE_PT_GENERATE_BE= (1ULL << 10),
435
-
OPTS_TYPE_PT_NEVERCRACK= (1ULL << 11), // if we want all possible results
436
-
OPTS_TYPE_PT_ALWAYS_ASCII= (1ULL << 12),
437
-
OPTS_TYPE_PT_ALWAYS_HEXIFY= (1ULL << 13),
438
-
OPTS_TYPE_PT_LM= (1ULL << 14), // special handling: all lower, 7 max, ...
439
-
OPTS_TYPE_PT_HEX= (1ULL << 15), // input wordlist is always in hex
440
-
OPTS_TYPE_ST_UTF16LE= (1ULL << 16),
441
-
OPTS_TYPE_ST_UTF16BE= (1ULL << 17),
442
-
OPTS_TYPE_ST_UPPER= (1ULL << 18),
443
-
OPTS_TYPE_ST_LOWER= (1ULL << 19),
444
-
OPTS_TYPE_ST_ADD01= (1ULL << 20),
445
-
OPTS_TYPE_ST_ADD02= (1ULL << 21),
446
-
OPTS_TYPE_ST_ADD80= (1ULL << 22),
447
-
OPTS_TYPE_ST_ADDBITS14= (1ULL << 23),
448
-
OPTS_TYPE_ST_ADDBITS15= (1ULL << 24),
449
-
OPTS_TYPE_ST_HEX= (1ULL << 25),
450
-
OPTS_TYPE_ST_BASE64= (1ULL << 26),
451
-
OPTS_TYPE_MT_HEX= (1ULL << 27), // mask is always in hex
452
-
OPTS_TYPE_HASH_COPY= (1ULL << 28),
453
-
OPTS_TYPE_HASH_SPLIT= (1ULL << 29),
454
-
OPTS_TYPE_INIT= (1ULL << 30), // Added v7, since bridge can fully replace these, but are set by default automatically
455
-
OPTS_TYPE_LOOP= (1ULL << 31), // Added v7, since bridge can fully replace these, but are set by default automatically
456
-
OPTS_TYPE_COMP= (1ULL << 32), // Added v7, since bridge can fully replace these, but are set by default automatically
457
-
OPTS_TYPE_LOOP_PREPARE= (1ULL << 33), // a kernel which is called each time before _loop kernel started.
458
-
// like a hook12 kernel but without extra buffers.
459
-
OPTS_TYPE_LOOP_EXTENDED= (1ULL << 34), // a kernel which is called each time normal _loop kernel finished.
460
-
// but unlike a hook kernel this kernel is called for every _loop iteration offset
461
-
OPTS_TYPE_HOOK12= (1ULL << 35),
462
-
OPTS_TYPE_HOOK23= (1ULL << 36),
463
-
OPTS_TYPE_INIT2= (1ULL << 37),
464
-
OPTS_TYPE_LOOP2_PREPARE= (1ULL << 38), // same as OPTS_TYPE_LOOP_PREPARE but for loop2 kernel
465
-
OPTS_TYPE_LOOP2= (1ULL << 39),
466
-
OPTS_TYPE_AUX1= (1ULL << 40),
467
-
OPTS_TYPE_AUX2= (1ULL << 41),
468
-
OPTS_TYPE_AUX3= (1ULL << 42),
469
-
OPTS_TYPE_AUX4= (1ULL << 43),
470
-
OPTS_TYPE_BINARY_HASHFILE= (1ULL << 44),
471
-
OPTS_TYPE_BINARY_HASHFILE_OPTIONAL
472
-
= (1ULL << 45), // this allows us to not enforce the use of a binary file. requires OPTS_TYPE_BINARY_HASHFILE set to be effective.
473
-
OPTS_TYPE_PT_ADD06= (1ULL << 46),
474
-
OPTS_TYPE_KEYBOARD_MAPPING= (1ULL << 47),
475
-
OPTS_TYPE_DEEP_COMP_KERNEL= (1ULL << 48), // if we have to iterate through each hash inside the comp kernel, for example if each hash has to be decrypted separately
476
-
OPTS_TYPE_TM_KERNEL= (1ULL << 49),
477
-
OPTS_TYPE_SUGGEST_KG= (1ULL << 50), // suggest keep guessing for modules the user maybe wants to use --keep-guessing
478
-
OPTS_TYPE_COPY_TMPS= (1ULL << 51), // if we want to use data from tmps buffer (for example get the PMK in WPA)
479
-
OPTS_TYPE_POTFILE_NOPASS= (1ULL << 52), // sometimes the password should not be printed to potfile
480
-
OPTS_TYPE_DYNAMIC_SHARED= (1ULL << 53), // use dynamic shared memory (note: needs special kernel changes)
481
-
OPTS_TYPE_SELF_TEST_DISABLE= (1ULL << 54), // some algos use JiT in combinations with a salt or create too much startup time
482
-
OPTS_TYPE_MP_MULTI_DISABLE= (1ULL << 55), // do not multiply the kernel-accel with the multiprocessor count per device to allow more fine-tuned workload settings
483
-
OPTS_TYPE_THREAD_MULTI_DISABLE// do not multiply the kernel-power with the thread count per device for super slow algos
OPTS_TYPE_POST_AMP_UTF16LE= (1ULL << 59), // run the utf8 to utf16le conversion kernel after they have been processed from amplifiers
488
-
OPTS_TYPE_AUTODETECT_DISABLE
489
-
= (1ULL << 60), // skip autodetect engine
490
-
OPTS_TYPE_STOCK_MODULE= (1ULL << 61), // module included with hashcat default distribution
491
-
OPTS_TYPE_MULTIHASH_DESPITE_ESALT
492
-
= (1ULL << 62), // overrule multihash cracking check same salt but not same esalt
493
-
OPTS_TYPE_MAXIMUM_ACCEL= (1ULL << 63) // try to maximize kernel-accel during autotune
424
+
OPTS_TYPE_PT_UTF16LE= (1ULL << 0),
425
+
OPTS_TYPE_PT_UTF16BE= (1ULL << 1),
426
+
OPTS_TYPE_PT_UPPER= (1ULL << 2),
427
+
OPTS_TYPE_PT_LOWER= (1ULL << 3),
428
+
OPTS_TYPE_PT_ADD01= (1ULL << 4),
429
+
OPTS_TYPE_PT_ADD02= (1ULL << 5),
430
+
OPTS_TYPE_PT_ADD80= (1ULL << 6),
431
+
OPTS_TYPE_PT_ADDBITS14= (1ULL << 7),
432
+
OPTS_TYPE_PT_ADDBITS15= (1ULL << 8),
433
+
OPTS_TYPE_PT_GENERATE_LE= (1ULL << 9),
434
+
OPTS_TYPE_PT_GENERATE_BE= (1ULL << 10),
435
+
OPTS_TYPE_PT_NEVERCRACK= (1ULL << 11), // if we want all possible results
436
+
OPTS_TYPE_PT_ALWAYS_ASCII= (1ULL << 12),
437
+
OPTS_TYPE_PT_ALWAYS_HEXIFY= (1ULL << 13),
438
+
OPTS_TYPE_PT_LM= (1ULL << 14), // special handling: all lower, 7 max, ...
439
+
OPTS_TYPE_PT_HEX= (1ULL << 15), // input wordlist is always in hex
440
+
OPTS_TYPE_PT_BASE58= (1ULL << 16), // only informative
441
+
OPTS_TYPE_ST_UTF16LE= (1ULL << 17),
442
+
OPTS_TYPE_ST_UTF16BE= (1ULL << 18),
443
+
OPTS_TYPE_ST_UPPER= (1ULL << 19),
444
+
OPTS_TYPE_ST_LOWER= (1ULL << 20),
445
+
OPTS_TYPE_ST_ADD01= (1ULL << 21),
446
+
OPTS_TYPE_ST_ADD02= (1ULL << 22),
447
+
OPTS_TYPE_ST_ADD80= (1ULL << 23),
448
+
OPTS_TYPE_ST_ADDBITS14= (1ULL << 24),
449
+
OPTS_TYPE_ST_ADDBITS15= (1ULL << 25),
450
+
OPTS_TYPE_ST_HEX= (1ULL << 26),
451
+
OPTS_TYPE_ST_BASE64= (1ULL << 27),
452
+
OPTS_TYPE_MT_HEX= (1ULL << 28), // mask is always in hex
453
+
OPTS_TYPE_HASH_COPY= (1ULL << 29),
454
+
OPTS_TYPE_HASH_SPLIT= (1ULL << 30),
455
+
OPTS_TYPE_INIT= (1ULL << 31), // Added v7, since bridge can fully replace these, but are set by default automatically
456
+
OPTS_TYPE_LOOP= (1ULL << 32), // Added v7, since bridge can fully replace these, but are set by default automatically
457
+
OPTS_TYPE_COMP= (1ULL << 33), // Added v7, since bridge can fully replace these, but are set by default automatically
458
+
OPTS_TYPE_LOOP_PREPARE= (1ULL << 34), // a kernel which is called each time before _loop kernel started.
459
+
// like a hook12 kernel but without extra buffers.
460
+
OPTS_TYPE_LOOP_EXTENDED= (1ULL << 35), // a kernel which is called each time normal _loop kernel finished.
461
+
// but unlike a hook kernel this kernel is called for every _loop iteration offset
462
+
OPTS_TYPE_HOOK12= (1ULL << 36),
463
+
OPTS_TYPE_HOOK23= (1ULL << 37),
464
+
OPTS_TYPE_INIT2= (1ULL << 38),
465
+
OPTS_TYPE_LOOP2_PREPARE= (1ULL << 39), // same as OPTS_TYPE_LOOP_PREPARE but for loop2 kernel
466
+
OPTS_TYPE_LOOP2= (1ULL << 40),
467
+
OPTS_TYPE_AUX1= (1ULL << 41),
468
+
OPTS_TYPE_AUX2= (1ULL << 42),
469
+
OPTS_TYPE_AUX3= (1ULL << 43),
470
+
OPTS_TYPE_AUX4= (1ULL << 44),
471
+
OPTS_TYPE_BINARY_HASHFILE= (1ULL << 45),
472
+
OPTS_TYPE_BINARY_HASHFILE_OPTIONAL= (1ULL << 46), // this allows us to not enforce the use of a binary file. requires OPTS_TYPE_BINARY_HASHFILE set to be effective.
473
+
OPTS_TYPE_PT_ADD06= (1ULL << 47),
474
+
OPTS_TYPE_KEYBOARD_MAPPING= (1ULL << 48),
475
+
OPTS_TYPE_DEEP_COMP_KERNEL= (1ULL << 49), // if we have to iterate through each hash inside the comp kernel, for example if each hash has to be decrypted separately
476
+
OPTS_TYPE_TM_KERNEL= (1ULL << 50),
477
+
OPTS_TYPE_SUGGEST_KG= (1ULL << 51), // suggest keep guessing for modules the user maybe wants to use --keep-guessing
478
+
OPTS_TYPE_COPY_TMPS= (1ULL << 52), // if we want to use data from tmps buffer (for example get the PMK in WPA)
479
+
OPTS_TYPE_POTFILE_NOPASS= (1ULL << 53), // sometimes the password should not be printed to potfile
480
+
OPTS_TYPE_DYNAMIC_SHARED= (1ULL << 54), // use dynamic shared memory (note: needs special kernel changes)
481
+
OPTS_TYPE_SELF_TEST_DISABLE= (1ULL << 55), // some algos use JiT in combinations with a salt or create too much startup time
482
+
OPTS_TYPE_MP_MULTI_DISABLE= (1ULL << 56), // do not multiply the kernel-accel with the multiprocessor count per device to allow more fine-tuned workload settings
483
+
OPTS_TYPE_THREAD_MULTI_DISABLE= (1ULL << 57), // do not multiply the kernel-power with the thread count per device for super slow algos
OPTS_TYPE_STOCK_MODULE= (1ULL << 62), // module included with hashcat default distribution
489
+
OPTS_TYPE_MULTIHASH_DESPITE_ESALT= (1ULL << 63) // overrule multihash cracking check same salt but not same esalt
490
+
//OPTS_TYPE_MAXIMUM_ACCEL = (1ULL << 64) // try to maximize kernel-accel during autotune
494
491
495
492
} opts_type_t;
496
493
497
494
typedefenumbridge_type
498
495
{
499
-
BRIDGE_TYPE_NONE=0, // no bridge support
500
-
BRIDGE_TYPE_MATCH_TUNINGS= (1ULL << 1), // Disables autotune and adjusts -n, -u and -T for the backend device according to match bridge dimensions
501
-
BRIDGE_TYPE_UPDATE_SELFTEST= (1ULL << 2), // updates the selftest configured in the module. Can be useful for generic hash modes such as the python one
496
+
BRIDGE_TYPE_NONE=0, // no bridge support
497
+
BRIDGE_TYPE_MATCH_TUNINGS= (1ULL << 1), // Disables autotune and adjusts -n, -u and -T for the backend device according to match bridge dimensions
498
+
BRIDGE_TYPE_UPDATE_SELFTEST= (1ULL << 2), // updates the selftest configured in the module. Can be useful for generic hash modes such as the python one
502
499
503
-
BRIDGE_TYPE_LAUNCH_INIT= (1ULL << 10), // attention! not yet implemented
504
-
BRIDGE_TYPE_LAUNCH_LOOP= (1ULL << 11),
505
-
BRIDGE_TYPE_LAUNCH_LOOP2= (1ULL << 12),
506
-
BRIDGE_TYPE_LAUNCH_COMP= (1ULL << 13), // attention! not yet implemented
500
+
BRIDGE_TYPE_LAUNCH_INIT= (1ULL << 10), // attention! not yet implemented
501
+
BRIDGE_TYPE_LAUNCH_LOOP= (1ULL << 11),
502
+
BRIDGE_TYPE_LAUNCH_LOOP2= (1ULL << 12),
503
+
BRIDGE_TYPE_LAUNCH_COMP= (1ULL << 13), // attention! not yet implemented
507
504
508
505
// BRIDGE_TYPE_REPLACE_* is like
509
506
// BRIDGE_TYPE_LAUNCH_*, but
510
507
// deactivates KERN_RUN INIT/LOOP/COMP
511
508
512
-
BRIDGE_TYPE_REPLACE_INIT= (1ULL << 20), // attention! not yet implemented
513
-
BRIDGE_TYPE_REPLACE_LOOP= (1ULL << 21),
514
-
BRIDGE_TYPE_REPLACE_LOOP2= (1ULL << 22),
515
-
BRIDGE_TYPE_REPLACE_COMP= (1ULL << 23), // attention! not yet implemented
516
-
517
-
BRIDGE_TYPE_FORCE_WORKITEMS_001= (1ULL << 30), // This override the workitem counts reported from the bridge device
518
-
BRIDGE_TYPE_FORCE_WORKITEMS_002= (1ULL << 31), // Can be useful if this is not a physical hardware
519
-
BRIDGE_TYPE_FORCE_WORKITEMS_004= (1ULL << 32),
520
-
BRIDGE_TYPE_FORCE_WORKITEMS_008= (1ULL << 33),
521
-
BRIDGE_TYPE_FORCE_WORKITEMS_016= (1ULL << 34),
522
-
BRIDGE_TYPE_FORCE_WORKITEMS_032= (1ULL << 35),
523
-
BRIDGE_TYPE_FORCE_WORKITEMS_064= (1ULL << 36),
524
-
BRIDGE_TYPE_FORCE_WORKITEMS_128= (1ULL << 37),
525
-
BRIDGE_TYPE_FORCE_WORKITEMS_256= (1ULL << 36),
509
+
BRIDGE_TYPE_REPLACE_INIT= (1ULL << 20), // attention! not yet implemented
510
+
BRIDGE_TYPE_REPLACE_LOOP= (1ULL << 21),
511
+
BRIDGE_TYPE_REPLACE_LOOP2= (1ULL << 22),
512
+
BRIDGE_TYPE_REPLACE_COMP= (1ULL << 23), // attention! not yet implemented
513
+
514
+
BRIDGE_TYPE_FORCE_WORKITEMS_001= (1ULL << 30), // This override the workitem counts reported from the bridge device
515
+
BRIDGE_TYPE_FORCE_WORKITEMS_002= (1ULL << 31), // Can be useful if this is not a physical hardware
0 commit comments