File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -52,24 +52,20 @@ def initialize
52
52
# Fingerprint a single host
53
53
def run_host ( ip )
54
54
begin
55
- connect
56
55
res = send_request_raw ( { 'uri' => '/' , 'method' => 'GET' } )
57
56
fp = http_fingerprint ( :response => res )
58
57
if fp
59
58
vprint_status ( "#{ peer } connected and fingerprinted: #{ fp } " )
60
59
# TODO: Interrogate the connection itself to see what version
61
60
# was used. Where that actually lives is eluding me. :/
62
- if datastore [ 'SSLVersion' ] == 'SSL3'
61
+ if datastore [ 'SSL' ] && datastore [ ' SSLVersion'] == 'SSL3'
63
62
print_good ( "#{ peer } accepts SSLv3" )
64
63
report_poodle_vuln ( ip )
65
64
end
66
65
end
67
66
rescue ::OpenSSL ::SSL ::SSLError => e
68
67
ssl_version = e . message . match ( / state=([^\s ]+)/ ) [ 1 ]
69
68
vprint_status ( "#{ peer } does not accept #{ ssl_version } " )
70
- rescue ::Timeout ::Error , ::Errno ::EPIPE
71
- ensure
72
- disconnect
73
69
end
74
70
end
75
71
You can’t perform that action at this time.
0 commit comments