Addition of table "dynamic_command_info" which is designed to hold cache information about dynamically loaded modules. This information will allow the tree pane to be populated without frequent queries directly into a dynamic module sourcebackend such as Metasploit.
git-svn-id: https://beef.googlecode.com/svn/trunk@633 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -37,6 +37,7 @@ require 'lib/model/plugin'
|
||||
require 'lib/model/http'
|
||||
require 'lib/model/browserdetails'
|
||||
require 'lib/model/distributedenginerules'
|
||||
require 'lib/model/dynamiccommandinfo'
|
||||
|
||||
require 'lib/crypto'
|
||||
|
||||
|
||||
@@ -12,8 +12,10 @@ class CommandModule
|
||||
property :name, Text, :lazy => false
|
||||
|
||||
has n, :commands
|
||||
has 1, :dynamic_command_info
|
||||
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
19
lib/model/dynamiccommandinfo.rb
Normal file
19
lib/model/dynamiccommandinfo.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
module BeEF
|
||||
module Models
|
||||
|
||||
class DynamicCommandInfo
|
||||
|
||||
include DataMapper::Resource
|
||||
|
||||
storage_names[:default] = 'dynamic_command_info'
|
||||
|
||||
property :id, Serial
|
||||
property :name, Text, :lazy => false
|
||||
property :description, Text, :lazy => false
|
||||
belongs_to :command_module
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user