Skip to content

Commit 4e31187

Browse files
committed
Use start.sh to start Pro via go_pro command
start.sh (installed with community/pro on apt installs) automatically starts dependency services (such as postgresql).
1 parent 370aed5 commit 4e31187

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2695,9 +2695,9 @@ 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

0 commit comments

Comments
 (0)