Skip to content

Commit 8becf41

Browse files
author
HD Moore
committed
Qualify ::File to prevent a stacktrace
1 parent 673e21c commit 8becf41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/post/meterpreter/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def init_meterpreter(sock,opts={})
128128

129129
# The SSL certificate is being passed down as a file path
130130
if opts[:ssl_cert]
131-
if ! File.exists? opts[:ssl_cert]
131+
if ! ::File.exists? opts[:ssl_cert]
132132
elog("SSL certificate at #{opts[:ssl_cert]} does not exist and will be ignored")
133133
else
134134
# Load the certificate the same way that SslTcpServer does it

0 commit comments

Comments
 (0)