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
bug/bundler_fix
David Maloney 2015-01-07 12:32:26 -06:00
parent 5480cb81f5
commit 4ad7021336
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
7 changed files with 25 additions and 0 deletions

View File

@ -29,6 +29,7 @@ module Auxiliary::JohnTheRipper
OptPath.new('CUSTOM_WORDLIST', [false, 'The path to an optional custom wordlist']),
OptInt.new('ITERATION_TIMOUT', [false, 'The max-run-time for each iteration of cracking']),
OptPath.new('JOHN_PATH', [false, 'The absolute path to the John the Ripper executable']),
OptBool.new('KoreLogic', [false, 'Apply the KoreLogic rules to Wordlist Mode(slower)', false]),
OptBool.new('MUTATE', [false, 'Apply common mutations to the Wordlist (SLOW)', false]),
OptPath.new('POT', [false, 'The path to a John POT file to use instead of the default']),
OptBool.new('USE_CREDS', [false, 'Use existing credential data saved in the database', true]),

View File

@ -43,6 +43,10 @@ class Metasploit3 < Msf::Auxiliary
cracker_instance = cracker.dup
cracker_instance.format = format
print_status "Cracking #{format} hashes in normal wordlist mode..."
# Turn on KoreLogic rules if the user asked for it
if datastore['KoreLogic']
cracker_instance.rules = 'KoreLogicRules'
end
cracker_instance.crack do |line|
print_status line.chomp
end

View File

@ -42,6 +42,10 @@ class Metasploit3 < Msf::Auxiliary
cracker_instance = cracker.dup
cracker_instance.format = format
print_status "Cracking #{format} hashes in normal wordlist mode..."
# Turn on KoreLogic rules if the user asked for it
if datastore['KoreLogic']
cracker_instance.rules = 'KoreLogicRules'
end
cracker_instance.crack do |line|
print_status line.chomp
end

View File

@ -57,6 +57,10 @@ class Metasploit3 < Msf::Auxiliary
cracker_instance = cracker.dup
cracker_instance.format = format
print_status "Cracking #{format} hashes in normal wordlist mode..."
# Turn on KoreLogic rules if the user asked for it
if datastore['KoreLogic']
cracker_instance.rules = 'KoreLogicRules'
end
cracker_instance.crack do |line|
print_status line.chomp
end

View File

@ -44,6 +44,10 @@ class Metasploit3 < Msf::Auxiliary
cracker_instance = cracker.dup
cracker_instance.format = format
print_status "Cracking #{format} hashes in normal wordlist mode..."
# Turn on KoreLogic rules if the user asked for it
if datastore['KoreLogic']
cracker_instance.rules = 'KoreLogicRules'
end
cracker_instance.crack do |line|
print_status line.chomp
end

View File

@ -42,6 +42,10 @@ class Metasploit3 < Msf::Auxiliary
cracker_instance = cracker.dup
cracker_instance.format = format
print_status "Cracking #{format} hashes in normal wordlist mode..."
# Turn on KoreLogic rules if the user asked for it
if datastore['KoreLogic']
cracker_instance.rules = 'KoreLogicRules'
end
cracker_instance.crack do |line|
print_status line.chomp
end

View File

@ -48,6 +48,10 @@ class Metasploit3 < Msf::Auxiliary
cracker_instance = cracker.dup
cracker_instance.format = format
print_status "Cracking #{format} hashes in normal wordlist mode..."
# Turn on KoreLogic rules if the user asked for it
if datastore['KoreLogic']
cracker_instance.rules = 'KoreLogicRules'
end
cracker_instance.crack do |line|
print_status line.chomp
end