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-b9f4589650daunstable
parent
3f69bb8053
commit
38fe469ce8
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue