mirror of
https://github.com/beefproject/beef
synced 2026-06-08 13:15:56 +00:00
git-svn-id: https://beef.googlecode.com/svn/trunk@653 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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