Make the HTTP Server header configurable
git-svn-id: file:///home/svn/framework3/trunk@12687 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
7d320fc961
commit
4b2a37015c
|
@ -31,6 +31,7 @@ module Exploit::Remote::HttpServer
|
|||
OptBool.new('HTTP::header_folding', [false, 'Enable folding of HTTP headers', 'false']),
|
||||
OptBool.new('HTTP::junk_headers', [false, 'Enable insertion of random junk HTTP headers', 'false']),
|
||||
OptEnum.new('HTTP::compression', [false, 'Enable compression of HTTP responses via content encoding', 'none', ['none','gzip','deflate']]),
|
||||
OptString.new('HTTP::server_name', [true, 'Configures the Server header of all outgoing replies', 'Apache'])
|
||||
], Exploit::Remote::HttpServer
|
||||
)
|
||||
|
||||
|
@ -105,7 +106,7 @@ module Exploit::Remote::HttpServer
|
|||
datastore['SSLCert']
|
||||
)
|
||||
|
||||
self.service.server_name = 'Apache'
|
||||
self.service.server_name = datastore['HTTP::server_name']
|
||||
|
||||
# Default the procedure of the URI to on_request_uri if one isn't
|
||||
# provided.
|
||||
|
|
Loading…
Reference in New Issue