Rename the requests plugin to http_requests

bug/bundler_fix
Spencer McIntyre 2015-03-13 13:13:18 -04:00
parent 2070934758
commit 59f40d73e3
1 changed files with 7 additions and 7 deletions

View File

@ -2,13 +2,13 @@ require 'uri'
module Msf module Msf
class Plugin::HTTPRequest < Msf::Plugin class Plugin::HTTPRequests < Msf::Plugin
class ConsoleCommandDispatcher class ConsoleCommandDispatcher
include Msf::Ui::Console::CommandDispatcher include Msf::Ui::Console::CommandDispatcher
def name def name
'Request' 'HTTP Requests'
end end
def commands def commands
@ -75,10 +75,10 @@ class Plugin::HTTPRequest < Msf::Plugin
name, _, value = val.partition(':') name, _, value = val.partition(':')
options[:headers][name] = value.strip options[:headers][name] = value.strip
when '-i' when '-i'
options[:print_headers] = true options[:print_headers] = true
when '-I' when '-I'
options[:print_headers] = true options[:print_headers] = true
options[:print_body] = false options[:print_body] = false
options[:method] ||= 'HEAD' options[:method] ||= 'HEAD'
when '-o' when '-o'
options[:output_file] = File.expand_path(val) options[:output_file] = File.expand_path(val)
@ -199,11 +199,11 @@ class Plugin::HTTPRequest < Msf::Plugin
end end
def cleanup def cleanup
remove_console_dispatcher('HTTP Request') remove_console_dispatcher('HTTP Requests')
end end
def name def name
'Requests' 'HTTP Requests'
end end
def desc def desc