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:
sussurro@happypacket.net
2010-12-22 18:58:12 +00:00
parent 37e15707cd
commit fe4ece8715
3 changed files with 23 additions and 1 deletions

View File

@@ -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'

View File

@@ -12,8 +12,10 @@ class CommandModule
property :name, Text, :lazy => false
has n, :commands
has 1, :dynamic_command_info
end
end
end
end

View 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