From af33006c696a269d40ac4977d1f87f7b56825009 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Fri, 15 Feb 2019 10:08:55 +0000 Subject: [PATCH] Use hook path rather than demo page --- modules/debug/test_network_request/module.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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' },