Skip to content

Commit b2fe31e

Browse files
committed
go_pro - fix start with kali linux
1 parent fca732d commit b2fe31e

File tree

1 file changed

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

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2889,8 +2889,7 @@ def cmd_go_pro(*args)
28892889
end
28902890
end
28912891
unless is_apt
2892-
print_line " This command is only available on deb package installations,"
2893-
print_line " such as Kali Linux."
2892+
print_warning "This command is only available on deb package installations, such as Kali Linux."
28942893
return false
28952894
end
28962895
unless is_metasploit_debian_package_installed
@@ -2932,15 +2931,18 @@ def launch_metasploit_browser
29322931
return false
29332932
end
29342933
svc_log = File.expand_path(File.join(msfbase_dir, ".." , "engine", "prosvc_stdout.log"))
2935-
return unless ::File.readable_real? svc_log
2934+
unless ::File.readable_real? svc_log
2935+
print_error "Unable to access log file: #{svc_log}"
2936+
return false
2937+
end
29362938
really_started = false
29372939
# This method is a little lame but it's a short enough file that it
29382940
# shouldn't really matter that we open and close it a few times.
29392941
timeout = 0
29402942
until really_started
29412943
select(nil,nil,nil,3)
29422944
log_data = ::File.open(svc_log, "rb") {|f| f.read f.stat.size}
2943-
really_started = log_data =~ /^\[\*\] Ready/ # This is webserver ready
2945+
really_started = log_data =~ /.*Ready/ # This is webserver ready
29442946
if really_started
29452947
print_line
29462948
print_good "Metasploit Community / Pro is up and running, connecting now."

0 commit comments

Comments
 (0)