Skip to content

Commit

Permalink
Moved autorun models to active record core models
Browse files Browse the repository at this point in the history
  • Loading branch information
passbe committed Oct 9, 2019
1 parent 91265ca commit 0574bdf
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 67 deletions.
2 changes: 0 additions & 2 deletions core/bootstrap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ module Core
require 'core/main/network_stack/api'

# @note Include the autorun engine
require 'core/main/autorun_engine/models/rule'
require 'core/main/autorun_engine/models/execution'
require 'core/main/autorun_engine/parser'
require 'core/main/autorun_engine/engine'
require 'core/main/autorun_engine/rule_loader'
Expand Down
2 changes: 2 additions & 0 deletions core/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module Core
require 'core/main/models/result'
require 'core/main/models/optioncache'
require 'core/main/models/browserdetails'
require 'core/main/models/rule'
require 'core/main/models/execution'

# @note Include the constants
require 'core/main/constants/browsers'
Expand Down
31 changes: 0 additions & 31 deletions core/main/autorun_engine/models/execution.rb

This file was deleted.

34 changes: 0 additions & 34 deletions core/main/autorun_engine/models/rule.rb

This file was deleted.

14 changes: 14 additions & 0 deletions core/main/models/execution.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Copyright (c) 2006-2019 Wade Alcorn - [email protected]
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#

module BeEF
module Core
module Models # @note Stored info about the execution of the ARE on hooked browsers.
class Execution < BeEF::Core::Model
end
end
end
end
16 changes: 16 additions & 0 deletions core/main/models/rule.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#
# Copyright (c) 2006-2019 Wade Alcorn - [email protected]
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#

module BeEF
module Core
module Models
# @note Table stores the rules for the Distributed Engine.
class Rule < BeEF::Core::Model
has_many :executions
end
end
end
end

0 comments on commit 0574bdf

Please sign in to comment.