File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
lib/msf/ui/console/command_dispatcher Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -2889,8 +2889,7 @@ def cmd_go_pro(*args)
2889
2889
end
2890
2890
end
2891
2891
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."
2894
2893
return false
2895
2894
end
2896
2895
unless is_metasploit_debian_package_installed
@@ -2932,15 +2931,18 @@ def launch_metasploit_browser
2932
2931
return false
2933
2932
end
2934
2933
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
2936
2938
really_started = false
2937
2939
# This method is a little lame but it's a short enough file that it
2938
2940
# shouldn't really matter that we open and close it a few times.
2939
2941
timeout = 0
2940
2942
until really_started
2941
2943
select ( nil , nil , nil , 3 )
2942
2944
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
2944
2946
if really_started
2945
2947
print_line
2946
2948
print_good "Metasploit Community / Pro is up and running, connecting now."
You can’t perform that action at this time.
0 commit comments