1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-05 14:57:30 +01:00

revert the rpc.stop patch as it breaks other rpc stuff. i'll have a better fix for this later today.

git-svn-id: file:///home/svn/framework3/trunk@9890 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2010-07-20 20:36:09 +00:00
parent 929163834a
commit 45c869d015
3 changed files with 7 additions and 8 deletions

View File

@ -2,11 +2,10 @@ module Msf
module RPC
class Base
def initialize(framework,tokens,users,plugin)
def initialize(framework,tokens,users)
@framework = framework
@tokens = tokens
@users = users
@plugin = plugin
end
def authenticate(token)

View File

@ -7,11 +7,6 @@ class Core < Base
{ "version" => ::Msf::Framework::Version }
end
def stop(token)
authenticate(token)
@plugin.cleanup
end
end
end
end

View File

@ -98,7 +98,7 @@ class Plugin::XMLRPC < Msf::Plugin
# Initialize the list of authenticated sessions
@tokens = {}
args = [framework,@tokens,@users,self]
args = [framework,@tokens,@users]
# Add handlers for every class
self.server.add_handler(::XMLRPC::iPIMethods("auth"),
@ -151,6 +151,11 @@ class Plugin::XMLRPC < Msf::Plugin
@plugin.cleanup
end
def stop(token)
authenticate(token)
@plugin.cleanup
end
end
end