fix missing bock transitions

the block objects weren't being transitioned over from the class
methods properly, so the callback blocks were never getting processed.
This commit is contained in:
David Maloney 2012-06-15 14:25:47 -05:00
parent fe39642e27
commit 122b34c703
4 changed files with 8 additions and 8 deletions

View File

@ -87,8 +87,8 @@ module Auxiliary
#
# Calls the class method.
#
def run_simple(opts = {})
Msf::Simple::Auxiliary.run_simple(self, opts)
def run_simple(opts = {}, &block)
Msf::Simple::Auxiliary.run_simple(self, opts, &block)
end
protected

View File

@ -157,8 +157,8 @@ module Exploit
#
# Calls the class method.
#
def exploit_simple(opts)
Msf::Simple::Exploit.exploit_simple(self, opts)
def exploit_simple(opts, &block)
Msf::Simple::Exploit.exploit_simple(self, opts, &block)
end
#

View File

@ -135,8 +135,8 @@ module Payload
#
# Calls the class method.
#
def generate_simple(opts)
Msf::Simple::Payload.generate_simple(self, opts)
def generate_simple(opts, &block)
Msf::Simple::Payload.generate_simple(self, opts, &block)
end
end

View File

@ -79,8 +79,8 @@ module Post
#
# Calls the class method.
#
def run_simple(opts = {})
Msf::Simple::Post.run_simple(self, opts)
def run_simple(opts = {}, &block)
Msf::Simple::Post.run_simple(self, opts, &block)
end
protected