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-b9f4589650daunstable
parent
50614260f1
commit
b97ccd5d88
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue