Skip to content

Commit 12f1234

Browse files
David MaloneyDavid Maloney
authored andcommitted
always set our rails root to our root
this works fine when calling any framework binaries from their path as CWD. if you call tehm from another path you will get an incorrect root which can cause certain things to load incorrectly Signed-off-by: David Maloney <[email protected]>
1 parent 1d430db commit 12f1234

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/metasploit/framework/common_engine.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ module Metasploit::Framework::CommonEngine
2323
Encoding.default_internal = encoding
2424
end
2525

26+
config.root = Msf::Config::install_root
2627
config.paths.add 'data/meterpreter', glob: '**/ext_*'
2728
config.paths.add 'modules'
2829

0 commit comments

Comments
 (0)