Bug #2292
Allow loading plugins from rpc
| Status: | Closed | Start date: | 07/23/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | James Lee | % Done: | 100% |
|
| Category: | user interface | |||
| Target version: | - | |||
| Resolution: | Release Note: |
Description
Example:
./msfrpc -U ...
>> rpc.call("plugin.load","auto_add_route",{"arg1"=>"val","arg2"=>"something else"})
We can probably modify code from cmd_load in lib/msf/ui/console/command_dispatcher/core.rb
Associated revisions
Add plugin support to rpc. Fixes #2292
git-svn-id: file:///home/svn/framework3/trunk@10177 4d416f70-5f16-0410-b530-b9f4589650da
History
Updated by Ryan Linn over 1 year ago
- File plugin.rb added
i wrote a basic one with 3 functions
plugin.load
plugin.unload
plugin.loaded
load takes 3 args: token, plugin path, opts hash
unload takes 1 arg: plugin name
There is no output handling in this module, but I think it will probably be cleaner that if the plugins include xmlrpc functions in addition to console driver stuff which handle input/output more directly.
Install:
add plugin.rb to $MSFHOME/lib/msf/core/rpc
add to plugin/xmlrpc.rb:
self.server.add_handler(::XMLRPC::iPIMethods("plugin"),
::Msf::RPC::Plugin.new(*args)
)
add to $MSFHOME/lib/msf/core/rpc.db:
require "msf/core/rpc/plugin"
Updated by Matthew Weeks over 1 year ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset r10177.
Updated by Matthew Weeks over 1 year ago
- Status changed from Resolved to Closed