Skip to content

Commit 4ad7021

Browse files
David MaloneyDavid Maloney
authored andcommitted
give user option to turn on KoreLogic rules
the cracker modules in framework now have a datastore option to allow the user to select the KoreLogicRules
1 parent 5480cb8 commit 4ad7021

File tree

7 files changed

+25
-0
lines changed

7 files changed

+25
-0
lines changed

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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ 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+
end
4650
cracker_instance.crack do |line|
4751
print_status line.chomp
4852
end

modules/auxiliary/analyze/jtr_crack_fast.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ 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+
end
4549
cracker_instance.crack do |line|
4650
print_status line.chomp
4751
end

modules/auxiliary/analyze/jtr_linux.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ 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+
end
6064
cracker_instance.crack do |line|
6165
print_status line.chomp
6266
end

modules/auxiliary/analyze/jtr_mssql_fast.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ 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+
end
4751
cracker_instance.crack do |line|
4852
print_status line.chomp
4953
end

modules/auxiliary/analyze/jtr_mysql_fast.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ 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+
end
4549
cracker_instance.crack do |line|
4650
print_status line.chomp
4751
end

modules/auxiliary/analyze/jtr_postgres_fast.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ 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+
end
5155
cracker_instance.crack do |line|
5256
print_status line.chomp
5357
end

0 commit comments

Comments
 (0)