Modules: Resolve many Rubocop violations

This commit is contained in:
Brendan Coles
2022-01-22 12:46:42 +00:00
parent bbe805f017
commit a64480dfab
317 changed files with 3238 additions and 3965 deletions

View File

@@ -2,18 +2,15 @@
# Copyright (c) 2015 Daniel Reece - @HBRN8
class Wordpress_add_admin < BeEF::Core::Command
def self.options
[{ 'name' => 'user', 'ui_label' => 'Username:', 'value' => 'beef' },
{ 'name' => 'pass', 'ui_label' => 'Pwd:', 'value' => [*('a'..'z'), *('0'..'9')].sample(8).join },
{ 'name' => 'email', 'ui_label' => 'Email:', 'value' => '' },
{ 'name' => 'domail', 'type' => 'checkbox', 'ui_label' => 'Success mail?:', 'checked' => 'true' },
{ 'name' => 'url', 'ui_label' => 'Website:', 'value' => 'beefproject.com' },
{ 'name' => 'fname', 'ui_label' => 'FirstName:', 'value' => 'beef' },
{ 'name' => 'lname', 'ui_label' => 'LastName:', 'value' => 'project' }]
end
def self.options
return [{'name'=>'user', 'ui_label' => 'Username:', 'value' => 'beef'},
{'name'=>'pass', 'ui_label' => 'Pwd:', 'value' => [*('a'..'z'),*('0'..'9')].shuffle[0,8].join},
{'name'=>'email', 'ui_label' => 'Email:', 'value' => ''},
{'name'=>'domail', 'type' => 'checkbox', 'ui_label' => 'Success mail?:', 'checked' => 'true'},
{'name'=>'url', 'ui_label' => 'Website:', 'value' => 'beefproject.com'},
{'name'=>'fname', 'ui_label' => 'FirstName:', 'value' => 'beef'},
{'name'=>'lname', 'ui_label' => 'LastName:', 'value' => 'project'}]
end
def post_execute
end
def post_execute; end
end