correct passive?() for post modules, see #3542
git-svn-id: file:///home/svn/framework3/trunk@11589 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
1c2a968327
commit
9df78e8f47
|
@ -19,6 +19,9 @@ class Post < Msf::Module
|
||||||
register_options( [
|
register_options( [
|
||||||
OptInt.new('SESSION', [ true, "The session to run this module on." ])
|
OptInt.new('SESSION', [ true, "The session to run this module on." ])
|
||||||
] , Msf::Post)
|
] , Msf::Post)
|
||||||
|
|
||||||
|
# Default stance is active
|
||||||
|
self.passive = (info['Passive'] and info['Passive'] == true) || false
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -73,11 +76,8 @@ class Post < Msf::Module
|
||||||
{}
|
{}
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
def passive?
|
||||||
# Default stance is active
|
self.passive
|
||||||
#
|
|
||||||
def passive
|
|
||||||
false
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def compatible_sessions
|
def compatible_sessions
|
||||||
|
@ -89,6 +89,9 @@ class Post < Msf::Module
|
||||||
sessions
|
sessions
|
||||||
end
|
end
|
||||||
|
|
||||||
|
attr_reader :passive
|
||||||
|
protected
|
||||||
|
attr_writer :passive
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue