@@ -28,16 +28,16 @@ def sslscan_command(self):
28
28
return '%s --no-color {host}:{port}' % self ._sslscan_path
29
29
30
30
def test_sslv2 (self ):
31
- return '%s s_client -connect {host}:{port} -ssl2' % self ._openssl_path
31
+ return '%s s_client -connect {host}:{port} -ssl2 -servername {host} ' % self ._openssl_path
32
32
33
33
def test_sslv3 (self ):
34
- return '%s s_client -connect {host}:{port} -ssl3' % self ._openssl_path
34
+ return '%s s_client -connect {host}:{port} -ssl3 -servername {host} ' % self ._openssl_path
35
35
36
36
def test_tls1 (self ):
37
- return '%s s_client -tls1 -connect {host}:{port}' % self ._openssl_path
37
+ return '%s s_client -tls1 -connect {host}:{port} -servername {host} ' % self ._openssl_path
38
38
39
39
def test_weak_cipher (self ):
40
- return '%s s_client -{tls} -cipher \' {cipher}\' -connect {host}:{port}' % self ._openssl_path
40
+ return '%s s_client -{tls} -cipher \' {cipher}\' -connect {host}:{port} -servername {host} ' % self ._openssl_path
41
41
42
42
def recon (self ):
43
43
return '%s -T4 -sV --top-ports 25 {host}' % self ._nmap_path
@@ -49,7 +49,7 @@ def test_http_redirect(self):
49
49
return '%s -m 10 -ksv http://{host}' % self ._curl_path
50
50
51
51
def test_self_signed_renegotiation (self ):
52
- return '%s s_client -connect {host}:{port}' % self ._openssl_path
52
+ return '%s s_client -connect {host}:{port} -servername {host} ' % self ._openssl_path
53
53
54
54
55
55
class Finding :
@@ -250,7 +250,7 @@ def _test_weak_cipher(self, tls, ciphers):
250
250
251
251
for cipher in ciphers :
252
252
params_tls_cipher = dict (self ._params , tls = tls , cipher = cipher )
253
- title = 'Evidence using weak cipher {tls} ({cipher}) on {host} port {port}:' .format (** params_tls_cipher )
253
+ title = 'Evidence using weak cipher ({cipher}) on {host} port {port}:' .format (** params_tls_cipher )
254
254
cmd = self ._commands .test_weak_cipher ().format (** params_tls_cipher )
255
255
256
256
print '## %s' % title
0 commit comments