Updated ipec for AR
This commit is contained in:
@@ -6,13 +6,9 @@
|
||||
module BeEF
|
||||
module Core
|
||||
module Models
|
||||
class IpecExploits < ActiveRecord::Base
|
||||
attribute :id, :Serial
|
||||
attribute :name, :Text, :lazy => false
|
||||
attribute :protocol, :String, :lazy => false
|
||||
attribute :os, :String, :lazy => false
|
||||
class IpecExploits < BeEF::Core::Model
|
||||
|
||||
belongs_to :extension_ipec_exploits_run, 'IpecExploitsRun'
|
||||
has_many :ipec_exploits_run
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -6,14 +6,9 @@
|
||||
module BeEF
|
||||
module Core
|
||||
module Models
|
||||
class IpecExploitsRun < ActiveRecord::Base
|
||||
class IpecExploitsRun < BeEF::Core::Model
|
||||
|
||||
attribute :id, :Serial
|
||||
attribute :launched, :Boolean, :lazy => false
|
||||
attribute :http_headers, :Text, :lazy => false
|
||||
attribute :junk_size, :String, :length => 3, :lazy => false
|
||||
|
||||
belongs_to :ipec_exploits
|
||||
belongs_to :ipec_exploit
|
||||
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user