Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/wordpress_add_admin/module.rb
1154 views
1
#
2
# Copyright (c) 2015 Daniel Reece - @HBRN8
3
4
class Wordpress_add_admin < BeEF::Core::Command
5
def self.options
6
[{ 'name' => 'user', 'ui_label' => 'Username:', 'value' => 'beef' },
7
{ 'name' => 'pass', 'ui_label' => 'Pwd:', 'value' => [*('a'..'z'), *('0'..'9')].sample(8).join },
8
{ 'name' => 'email', 'ui_label' => 'Email:', 'value' => '' },
9
{ 'name' => 'domail', 'type' => 'checkbox', 'ui_label' => 'Success mail?:', 'checked' => 'true' },
10
{ 'name' => 'url', 'ui_label' => 'Website:', 'value' => 'beefproject.com' },
11
{ 'name' => 'fname', 'ui_label' => 'FirstName:', 'value' => 'beef' },
12
{ 'name' => 'lname', 'ui_label' => 'LastName:', 'value' => 'project' }]
13
end
14
15
def post_execute; end
16
end
17
18