Initial hook detection (#2440)
* initial multi-stage with basic switch on useragent * added legacybrowseruseragents to core * moved logic to a method and debugging * array for holding legacy browsers * added are.js back for parity to legacy hook.js * removed byebug
This commit is contained in:
26
core/main/models/legacybrowseruseragents.rb
Normal file
26
core/main/models/legacybrowseruseragents.rb
Normal file
@@ -0,0 +1,26 @@
|
||||
#
|
||||
# Copyright (c) 2006-2022 Wade Alcorn - wade@bindshell.net
|
||||
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||
# See the file 'doc/COPYING' for copying permission
|
||||
#
|
||||
module BeEF
|
||||
module Core
|
||||
module Models
|
||||
#
|
||||
# Objects stores known 'legacy' browser User Agents.
|
||||
#
|
||||
# This table is used to determine if a hooked browser is a 'legacy'
|
||||
# browser and therefore which version of the hook file to generate and use
|
||||
#
|
||||
# TODO: make it an actual table
|
||||
#
|
||||
module LegacyBrowserUserAgents
|
||||
def self.user_agents
|
||||
[
|
||||
'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0'
|
||||
]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user