Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/exploits/nas/dlink_sharecenter_cmd_exec/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
# This module has not been tested. For more information see:
7
# http://blog.emaze.net/2012_02_01_archive.html
8
# http://www.securityfocus.com/archive/1/521532
9
###
10
class Dlink_sharecenter_cmd_exec < BeEF::Core::Command
11
def self.options
12
[
13
{ 'name' => 'base', 'ui_label' => 'Router web root', 'value' => 'http://192.168.0.1/' },
14
{ 'name' => 'cmd', 'ui_label' => 'Command', 'value' => 'ls' }
15
]
16
end
17
18
def post_execute
19
save({ 'result' => @datastore['result'] })
20
end
21
end
22
23