Skip to content

Commit 9084e2a

Browse files
committed
Merge branch 'master' of github.com:rapid7/metasploit-framework into rapid7
2 parents ac63965 + 1887acd commit 9084e2a

File tree

1 file changed

+4
-4
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+4
-4
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ def cmd_go_pro(*args)
26422642
if is_metasploit_service_running
26432643
launch_metasploit_browser
26442644
else
2645-
print_error "Metasploit services aren't running. Type 'service start metasploit' and try again."
2645+
print_error "Metasploit services aren't running. Type 'service metasploit start' and try again."
26462646
end
26472647
end
26482648
return true
@@ -2695,16 +2695,16 @@ def launch_metasploit_browser
26952695
end
26962696

26972697
def start_metasploit_service
2698-
cmd = "/usr/sbin/service"
2698+
cmd = File.expand_path(File.join(msfbase_dir, '..', '..', '..', 'scripts', 'start.sh'))
26992699
return unless ::File.executable_real? cmd
2700-
%x{#{cmd} metasploit start}.each_line do |line|
2700+
%x{#{cmd}}.each_line do |line|
27012701
print_status line.chomp
27022702
end
27032703
end
27042704

27052705
def is_metasploit_service_running
27062706
cmd = "/usr/sbin/service"
2707-
system(cmd, "metasploit", "status") # Both running returns true, otherwise, false.
2707+
system("#{cmd} metasploit status >/dev/null") # Both running returns true, otherwise, false.
27082708
end
27092709

27102710
def is_metasploit_debian_package_installed

0 commit comments

Comments
 (0)