Land #2426 - make use of Msf::Config.data_directory
This commit is contained in:
@@ -81,7 +81,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
||||
|
||||
def exploit
|
||||
# load the class data
|
||||
path = File.join(Msf::Config.install_root, "data", "exploits", "QTJavaExploit.class")
|
||||
path = File.join(Msf::Config.data_directory, "exploits", "QTJavaExploit.class")
|
||||
fd = File.open(path, "rb")
|
||||
@class_data = fd.read(fd.stat.size)
|
||||
fd.close
|
||||
|
||||
Reference in New Issue
Block a user