git-svn-id: https://beef.googlecode.com/svn/trunk@653 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
21
lib/model/dynamicpayloadinfo.rb
Normal file
21
lib/model/dynamicpayloadinfo.rb
Normal file
@@ -0,0 +1,21 @@
|
||||
module BeEF
|
||||
module Models
|
||||
|
||||
class DynamicPayloadInfo
|
||||
|
||||
include DataMapper::Resource
|
||||
|
||||
storage_names[:default] = 'dynamic_payload_info'
|
||||
|
||||
property :id, Serial
|
||||
property :name, String, :length => 15
|
||||
property :value, String, :length => 30
|
||||
property :required, Boolean, :default => false
|
||||
property :description, Text, :lazy => false
|
||||
belongs_to :dynamic_payloads
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
19
lib/model/dynamicpayloads.rb
Normal file
19
lib/model/dynamicpayloads.rb
Normal file
@@ -0,0 +1,19 @@
|
||||
module BeEF
|
||||
module Models
|
||||
|
||||
class DynamicPayloads
|
||||
|
||||
include DataMapper::Resource
|
||||
|
||||
storage_names[:default] = 'dynamic_payloads'
|
||||
|
||||
property :id, Serial
|
||||
property :name, Text, :lazy => false
|
||||
|
||||
has n, :dynamic_payload_info
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user