mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
o The SSLv2-support NSE script no longer prints duplicate cyphers if
they exist in the server's supported cypher list.
This commit is contained in:
@@ -84,9 +84,11 @@ cyphers = function(cypher_list, len)
|
||||
if (cypher_name == nil) then
|
||||
cypher_name = "unknown cypher (" .. byte1 .. "-" .. byte2 .. "-" .. byte3 .. " dec)"
|
||||
end
|
||||
|
||||
available_cyphers = available_cyphers .. "\t" .. cypher_name .. "\n";
|
||||
|
||||
|
||||
-- Check for duplicate cyphers
|
||||
if not available_cyphers:match("\t" .. cypher_name .. "\n") then
|
||||
available_cyphers = available_cyphers .. "\t" .. cypher_name .. "\n";
|
||||
end
|
||||
end
|
||||
|
||||
return available_cyphers
|
||||
|
||||
Reference in New Issue
Block a user