From a23ce05752c4bdd466ddbc7cca72984ddb314cc0 Mon Sep 17 00:00:00 2001 From: Jon Hart Date: Tue, 24 May 2016 13:53:26 -0700 Subject: [PATCH] File.exists? must cease to exist --- lib/msf/core/opt_path.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/opt_path.rb b/lib/msf/core/opt_path.rb index cbd22c17bb..b5cf0abcef 100644 --- a/lib/msf/core/opt_path.rb +++ b/lib/msf/core/opt_path.rb @@ -27,7 +27,7 @@ class OptPath < OptBase if value =~ /^memory:\s*([0-9]+)/i return false unless check_memory_location($1) else - unless File.exists?(File.expand_path(value)) + unless File.exist?(File.expand_path(value)) return false end end