Update msf json rpc file path to be relative

This commit is contained in:
Alan Foster
2020-05-11 11:59:35 +01:00
parent 61e17d3a2c
commit e814007086
+1 -1
View File
@@ -4,7 +4,7 @@
#
require 'pathname'
@framework_path = '.'
@framework_path = File.expand_path(File.dirname(__FILE__))
root = Pathname.new(@framework_path).expand_path
@framework_lib_path = root.join('lib')
$LOAD_PATH << @framework_lib_path unless $LOAD_PATH.include?(@framework_lib_path)