mirror of
https://github.com/nmap/nmap.git
synced 2025-12-25 08:59:01 +00:00
Use tls.client_hello defaults for some scripts
This commit is contained in:
@@ -63,17 +63,7 @@ local client_hello = function(host, port)
|
||||
local sock, status, response, err, cli_h
|
||||
|
||||
-- Craft Client Hello
|
||||
cli_h = tls.client_hello({
|
||||
["protocol"] = "TLSv1.0",
|
||||
["ciphers"] = {
|
||||
"TLS_RSA_WITH_AES_128_CBC_SHA",
|
||||
"TLS_RSA_WITH_3DES_EDE_CBC_SHA",
|
||||
"TLS_ECDHE_RSA_WITH_RC4_128_SHA",
|
||||
"TLS_DHE_RSA_WITH_AES_256_CBC_SHA",
|
||||
"TLS_RSA_WITH_RC4_128_MD5",
|
||||
},
|
||||
["compressors"] = {"NULL"},
|
||||
})
|
||||
cli_h = tls.client_hello()
|
||||
|
||||
-- Connect to the target server
|
||||
local specialized_function = sslcert.getPrepareTLSWithoutReconnect(port)
|
||||
|
||||
@@ -52,15 +52,6 @@ local client_hello = function(host, port)
|
||||
local sock, status, response, err, cli_h
|
||||
|
||||
cli_h = tls.client_hello({
|
||||
["protocol"] = "TLSv1.0",
|
||||
["ciphers"] = {
|
||||
"TLS_RSA_WITH_AES_128_CBC_SHA",
|
||||
"TLS_RSA_WITH_3DES_EDE_CBC_SHA",
|
||||
"TLS_ECDHE_RSA_WITH_RC4_128_SHA",
|
||||
"TLS_DHE_RSA_WITH_AES_256_CBC_SHA",
|
||||
"TLS_RSA_WITH_RC4_128_MD5",
|
||||
},
|
||||
["compressors"] = {"NULL"},
|
||||
["extensions"] = {
|
||||
["next_protocol_negotiation"] = "",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user