deal with via_exploit being fullname instead of refname by creating it through framework.modules instead of framework.exploits. fixes #1165

git-svn-id: file:///home/svn/framework3/trunk@8836 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2010-03-16 19:17:21 +00:00
parent 3f69bb8053
commit 38fe469ce8
1 changed files with 2 additions and 1 deletions

View File

@ -38,7 +38,8 @@ module MeterpreterOptions
if (datastore['AutoLoadStdapi'] == true)
session.load_stdapi
if (framework.exploits.create(session.via_exploit).privileged?)
mod = framework.modules.create(session.via_exploit)
if (mod and mod.privileged?)
session.load_priv
end