fix msfbasedir for go_pro

go_pro uses the wrong base director y for starting
up metasploit pro when using the go_pro command
this caused errors
bug/bundler_fix
David Maloney 2014-08-20 15:22:18 -05:00
parent f9b902c6cc
commit b547f7fc75
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 2 additions and 2 deletions

View File

@ -3006,7 +3006,7 @@ class Core
print_warning "to start Metasploit Community / Pro."
return false
end
svc_log = File.expand_path(File.join(msfbase_dir, ".." , "engine", "prosvc_stdout.log"))
svc_log = File.expand_path(File.join(ENV['METASPLOIT_ROOT'], "apps" , "pro", "engine", "prosvc_stdout.log"))
unless ::File.readable_real? svc_log
print_error "Unable to access log file: #{svc_log}"
return false
@ -3041,7 +3041,7 @@ class Core
end
def start_metasploit_service
cmd = File.expand_path(File.join(msfbase_dir, '..', '..', '..', 'scripts', 'start.sh'))
cmd = File.expand_path(File.join(ENV['METASPLOIT_ROOT'], 'scripts', 'start.sh'))
return unless ::File.executable_real? cmd
%x{#{cmd}}.each_line do |line|
print_status line.chomp