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
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