Land #2426 - make use of Msf::Config.data_directory

This commit is contained in:
sinn3r
2013-10-21 13:07:33 -05:00
129 changed files with 172 additions and 172 deletions
@@ -87,7 +87,7 @@ class Metasploit3 < Msf::Exploit::Remote
def exploit
# load the static jar file
path = File.join( Msf::Config.install_root, "data", "exploits", "CVE-2012-0507.jar" )
path = File.join( Msf::Config.data_directory, "exploits", "CVE-2012-0507.jar" )
fd = File.open( path, "rb" )
@jar_data = fd.read(fd.stat.size)
fd.close