Skip to content

Commit e3e9a64

Browse files
committed
Land rapid7#4543, Update john.conf with korelogic rules
2 parents bdbb26b + 82d129b commit e3e9a64

File tree

8 files changed

+527
-2321
lines changed

8 files changed

+527
-2321
lines changed

data/john/confs/john.conf

Lines changed: 496 additions & 2321 deletions
Large diffs are not rendered by default.

lib/msf/core/auxiliary/jtr.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ def initialize(info = {})
2929
OptPath.new('CUSTOM_WORDLIST', [false, 'The path to an optional custom wordlist']),
3030
OptInt.new('ITERATION_TIMOUT', [false, 'The max-run-time for each iteration of cracking']),
3131
OptPath.new('JOHN_PATH', [false, 'The absolute path to the John the Ripper executable']),
32+
OptBool.new('KoreLogic', [false, 'Apply the KoreLogic rules to Wordlist Mode(slower)', false]),
3233
OptBool.new('MUTATE', [false, 'Apply common mutations to the Wordlist (SLOW)', false]),
3334
OptPath.new('POT', [false, 'The path to a John POT file to use instead of the default']),
3435
OptBool.new('USE_CREDS', [false, 'Use existing credential data saved in the database', true]),

modules/auxiliary/analyze/jtr_aix.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ def run
4343
cracker_instance = cracker.dup
4444
cracker_instance.format = format
4545
print_status "Cracking #{format} hashes in normal wordlist mode..."
46+
# Turn on KoreLogic rules if the user asked for it
47+
if datastore['KoreLogic']
48+
cracker_instance.rules = 'KoreLogicRules'
49+
print_status "Applying KoreLogic ruleset..."
50+
end
4651
cracker_instance.crack do |line|
4752
print_status line.chomp
4853
end

modules/auxiliary/analyze/jtr_crack_fast.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def run
4242
cracker_instance = cracker.dup
4343
cracker_instance.format = format
4444
print_status "Cracking #{format} hashes in normal wordlist mode..."
45+
# Turn on KoreLogic rules if the user asked for it
46+
if datastore['KoreLogic']
47+
cracker_instance.rules = 'KoreLogicRules'
48+
print_status "Applying KoreLogic ruleset..."
49+
end
4550
cracker_instance.crack do |line|
4651
print_status line.chomp
4752
end

modules/auxiliary/analyze/jtr_linux.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ def run
5757
cracker_instance = cracker.dup
5858
cracker_instance.format = format
5959
print_status "Cracking #{format} hashes in normal wordlist mode..."
60+
# Turn on KoreLogic rules if the user asked for it
61+
if datastore['KoreLogic']
62+
cracker_instance.rules = 'KoreLogicRules'
63+
print_status "Applying KoreLogic ruleset..."
64+
end
6065
cracker_instance.crack do |line|
6166
print_status line.chomp
6267
end

modules/auxiliary/analyze/jtr_mssql_fast.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ def run
4444
cracker_instance = cracker.dup
4545
cracker_instance.format = format
4646
print_status "Cracking #{format} hashes in normal wordlist mode..."
47+
# Turn on KoreLogic rules if the user asked for it
48+
if datastore['KoreLogic']
49+
cracker_instance.rules = 'KoreLogicRules'
50+
print_status "Applying KoreLogic ruleset..."
51+
end
4752
cracker_instance.crack do |line|
4853
print_status line.chomp
4954
end

modules/auxiliary/analyze/jtr_mysql_fast.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ def run
4242
cracker_instance = cracker.dup
4343
cracker_instance.format = format
4444
print_status "Cracking #{format} hashes in normal wordlist mode..."
45+
# Turn on KoreLogic rules if the user asked for it
46+
if datastore['KoreLogic']
47+
cracker_instance.rules = 'KoreLogicRules'
48+
print_status "Applying KoreLogic ruleset..."
49+
end
4550
cracker_instance.crack do |line|
4651
print_status line.chomp
4752
end

modules/auxiliary/analyze/jtr_postgres_fast.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ def run
4848
cracker_instance = cracker.dup
4949
cracker_instance.format = format
5050
print_status "Cracking #{format} hashes in normal wordlist mode..."
51+
# Turn on KoreLogic rules if the user asked for it
52+
if datastore['KoreLogic']
53+
cracker_instance.rules = 'KoreLogicRules'
54+
print_status "Applying KoreLogic ruleset..."
55+
end
5156
cracker_instance.crack do |line|
5257
print_status line.chomp
5358
end

0 commit comments

Comments
 (0)