diff --git a/modules/debug/test_http_bind_raw/command.js b/modules/debug/test_http_bind_raw/command.js deleted file mode 100644 index 14a39676c..000000000 --- a/modules/debug/test_http_bind_raw/command.js +++ /dev/null @@ -1,11 +0,0 @@ -// -// Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net -// Browser Exploitation Framework (BeEF) - http://beefproject.com -// See the file 'doc/COPYING' for copying permission -// - -beef.execute(function() { - - beef.net.send('<%= @command_url %>', <%= @command_id %>, 'result=mounted to /beef'); - -}); diff --git a/modules/debug/test_http_bind_raw/config.yaml b/modules/debug/test_http_bind_raw/config.yaml deleted file mode 100644 index abf593921..000000000 --- a/modules/debug/test_http_bind_raw/config.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# -# Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net -# Browser Exploitation Framework (BeEF) - http://beefproject.com -# See the file 'doc/COPYING' for copying permission -# -beef: - module: - test_http_bind_raw: - enable: true - category: "Debug" - name: "Test HTTP Bind Raw" - description: "Test the HTTP 'bind_raw' handler." - authors: ["bcoles"] - target: - working: ["All"] diff --git a/modules/debug/test_http_bind_raw/module.rb b/modules/debug/test_http_bind_raw/module.rb deleted file mode 100644 index fdda14ff0..000000000 --- a/modules/debug/test_http_bind_raw/module.rb +++ /dev/null @@ -1,21 +0,0 @@ -# -# Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net -# Browser Exploitation Framework (BeEF) - http://beefproject.com -# See the file 'doc/COPYING' for copying permission -# -class Test_http_bind_raw < BeEF::Core::Command - - def pre_send - configuration = BeEF::Core::Configuration.instance - proto = configuration.get("beef.http.https.enable") == true ? "https" : "http" - xss_hook_url = "#{proto}://#{configuration.get("beef.http.host")}:#{configuration.get("beef.http.port")}/demos/basic.html" - BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind_raw('200', {'Content-Type'=>'text/html','beef'=>xss_hook_url}, 'hello world!', '/beef', -1) - end - - def post_execute - content = {} - content['Result'] = @datastore['result'] - save content - end - -end diff --git a/modules/debug/test_network_request/module.rb b/modules/debug/test_network_request/module.rb index 2f7724a34..338cf2c93 100644 --- a/modules/debug/test_network_request/module.rb +++ b/modules/debug/test_network_request/module.rb @@ -15,13 +15,14 @@ class Test_network_request < BeEF::Core::Command @configuration = BeEF::Core::Configuration.instance beef_host = @configuration.get("beef.http.public") || @configuration.get("beef.http.host") beef_port = @configuration.get("beef.http.public_port") || @configuration.get("beef.http.port") + hook_path = @configuration.get("beef.http.hook_file") return [ {'name' => 'scheme', 'ui_label'=>'Scheme', 'type' => 'text', 'width' => '400px', 'value' => 'http' }, {'name' => 'method', 'ui_label'=>'Method', 'type' => 'text', 'width' => '400px', 'value' => 'GET' }, {'name' => 'domain', 'ui_label'=>'Domain', 'type' => 'text', 'width' => '400px', 'value' => beef_host }, {'name' => 'port', 'ui_label'=>'Port', 'type' => 'text', 'width' => '400px', 'value' => beef_port }, - {'name' => 'path', 'ui_label'=>'Path', 'type' => 'text', 'width' => '400px', 'value' => '/demos/secret_page.html' }, + {'name' => 'path', 'ui_label'=>'Path', 'type' => 'text', 'width' => '400px', 'value' => hook_path }, {'name' => 'anchor', 'ui_label'=>'Anchor', 'type' => 'text', 'width' => '400px', 'value' => 'irrelevant' }, {'name' => 'data', 'ui_label'=>'Query String', 'type' => 'text', 'width' => '400px', 'value' => 'query=data' }, {'name' => 'timeout', 'ui_label' => 'Timeout (s)', 'value' => '10', 'width'=>'400px' },