don't error out and die if a post module doesn't have a SessionTypes

git-svn-id: file:///home/svn/framework3/trunk@11786 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-02-21 20:00:21 +00:00
parent 50614260f1
commit b97ccd5d88
1 changed files with 3 additions and 1 deletions

View File

@ -83,7 +83,9 @@ class Post < Msf::Module
def compatible_sessions
sessions = []
framework.sessions.each do |sid, s|
if self.module_info["SessionTypes"]
next unless self.module_info["SessionTypes"].include?(s.type)
end
sessions << sid
end
sessions