1# 2# Copyright (c) 2006-2025 Wade Alcorn - [email protected] 3# Browser Exploitation Framework (BeEF) - https://beefproject.com 4# See the file 'doc/COPYING' for copying permission 5# 6module BeEF 7 module Core 8 module Models 9 class HookedBrowser < BeEF::Core::Model 10 has_many :commands 11 has_many :results 12 has_many :logs 13 14 # @note Increases the count of a zombie 15 def count! 16 count.nil? ? self.count = 1 : self.count += 1 17 end 18 end 19 end 20 end 21end 22 23