Try to fall back on aux modules if it's not an exploit

git-svn-id: file:///home/svn/framework3/trunk@6030 4d416f70-5f16-0410-b530-b9f4589650da
unstable
kris 2008-12-20 04:20:42 +00:00
parent f1093ee6a9
commit 1cbc6d925b
1 changed files with 5 additions and 0 deletions

5
msfcli
View File

@ -108,6 +108,11 @@ when /auxiliary\/(.*)/
else
exploit = $framework.exploits.create(exploit_name)
if exploit == nil
# Try falling back on aux modules
exploit = $framework.auxiliary.create(exploit_name)
module_class = 'auxiliary'
end
end