From 59f40d73e3a1afc2fcfbcb4a108d542a2ee59100 Mon Sep 17 00:00:00 2001 From: Spencer McIntyre Date: Fri, 13 Mar 2015 13:13:18 -0400 Subject: [PATCH] Rename the requests plugin to http_requests --- plugins/{requests.rb => http_requests.rb} | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) rename plugins/{requests.rb => http_requests.rb} (95%) diff --git a/plugins/requests.rb b/plugins/http_requests.rb similarity index 95% rename from plugins/requests.rb rename to plugins/http_requests.rb index 9cc04b19ee..45b42e4d89 100644 --- a/plugins/requests.rb +++ b/plugins/http_requests.rb @@ -2,13 +2,13 @@ require 'uri' module Msf -class Plugin::HTTPRequest < Msf::Plugin +class Plugin::HTTPRequests < Msf::Plugin class ConsoleCommandDispatcher include Msf::Ui::Console::CommandDispatcher def name - 'Request' + 'HTTP Requests' end def commands @@ -75,10 +75,10 @@ class Plugin::HTTPRequest < Msf::Plugin name, _, value = val.partition(':') options[:headers][name] = value.strip when '-i' - options[:print_headers] = true + options[:print_headers] = true when '-I' - options[:print_headers] = true - options[:print_body] = false + options[:print_headers] = true + options[:print_body] = false options[:method] ||= 'HEAD' when '-o' options[:output_file] = File.expand_path(val) @@ -199,11 +199,11 @@ class Plugin::HTTPRequest < Msf::Plugin end def cleanup - remove_console_dispatcher('HTTP Request') + remove_console_dispatcher('HTTP Requests') end def name - 'Requests' + 'HTTP Requests' end def desc