Remove global reference

git-svn-id: file:///home/svn/framework3/trunk@13600 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-08-20 20:39:57 +00:00
parent b331073851
commit df93ddfb11
1 changed files with 2 additions and 2 deletions

View File

@ -226,7 +226,7 @@ class Module < Base
file.close
end
enc = $framework.encoders.create(encoder)
enc = @framework.encoders.create(encoder)
begin
# Imports options
@ -239,7 +239,7 @@ class Module < Base
raw = enc.encode(raw, badchars, nil, plat)
end
output = Msf::Util::EXE.to_executable_fmt($framework, arch, plat, raw, fmt, exeopts)
output = Msf::Util::EXE.to_executable_fmt(@framework, arch, plat, raw, fmt, exeopts)
if not output
fmt ||= "ruby"