Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/zeroshell/zeroshell_2_0rc2_file_disclosure/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 Zeroshell_2_0rc2_file_disclosure < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'rhost', 'ui_label' => 'Target Host', 'value' => '192.168.0.1' },
10
{ 'name' => 'rport', 'ui_label' => 'Target Port', 'value' => '80' },
11
{ 'name' => 'rfile', 'ui_label' => 'Absolute file path', 'value' => '/etc/passwd' }
12
]
13
end
14
15
def post_execute
16
save({ 'result' => @datastore['result'] })
17
end
18
end
19
20