Fix running shipped bins by using a config file

This should get everything working again.

MSP-10817
bug/bundler_fix
James Lee 2014-07-21 18:26:50 -05:00
parent 917d2c718b
commit addecb6311
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
1 changed files with 11 additions and 0 deletions

View File

@ -119,6 +119,8 @@ module Metasploit
if config.present?
cmd << ( "--config=" + config )
else
cmd << ( "--config=" + john_config_file )
end
if pot.present?
@ -162,6 +164,13 @@ module Metasploit
end
end
# This method returns the path to a default john.conf file.
#
# @return [String] the path to the default john.conf file
def john_config_file
::File.join( ::Msf::Config.data_directory, "john", "confs", "john.conf" )
end
# This method returns the path to a default john.pot file.
#
# @return [String] the path to the default john.pot file
@ -189,6 +198,8 @@ module Metasploit
if config
cmd << "--config=#{config}"
else
cmd << ( "--config=" + john_config_file )
end
cmd << hash_path