Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/browser/detect_activex/module.rb
1154 views
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
#
6
class Detect_activex < BeEF::Core::Command
7
def post_execute
8
content = {}
9
content['activex'] = @datastore['activex']
10
save content
11
12
activex = @datastore['results'].scan(/^activex=(Yes|No)/).flatten.first
13
return unless activex
14
15
BeEF::Core::Models::BrowserDetails.set(@datastore['beefhook'], 'browser.capabilities.activex', activex)
16
end
17
end
18
19