Land #16353, respect ssl_version in crawler
This commit is contained in:
commit
024da204d1
|
@ -189,7 +189,7 @@ module Anemone
|
|||
url.port.to_i,
|
||||
context,
|
||||
url.scheme == "https",
|
||||
'SSLv23',
|
||||
@opts[:ssl_version],
|
||||
@opts[:proxies],
|
||||
@opts[:username],
|
||||
@opts[:password]
|
||||
|
|
|
@ -294,6 +294,9 @@ module Auxiliary::HttpCrawler
|
|||
opts[:password] = t[:password] || ''
|
||||
opts[:domain] = t[:domain] || 'WORKSTATION'
|
||||
|
||||
if ssl
|
||||
opts[:ssl_version] = ssl_version
|
||||
end
|
||||
opts
|
||||
end
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ class Auxiliary::Web::HTTP
|
|||
opts[:target].port,
|
||||
{},
|
||||
opts[:target].ssl,
|
||||
'SSLv23',
|
||||
'Auto',
|
||||
nil,
|
||||
username,
|
||||
password
|
||||
|
|
|
@ -64,6 +64,10 @@ class MetasploitModule < Msf::Auxiliary
|
|||
#
|
||||
def crawler_process_page(t, page, cnt)
|
||||
msg = "[#{"%.5d" % cnt}/#{"%.5d" % max_page_count}] #{page.code || "ERR"} - #{t[:vhost]} - #{page.url}"
|
||||
if page.error
|
||||
print_error("Error accessing page #{page.error.to_s}")
|
||||
elog(page.error)
|
||||
end
|
||||
case page.code
|
||||
when 301,302
|
||||
if page.headers and page.headers["location"]
|
||||
|
|
Loading…
Reference in New Issue