diff --git a/CHANGELOG b/CHANGELOG index 77f30a8bf..1c42f763a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -123,6 +123,9 @@ o Upgraded the shipped libdnet to 1.12. [Kris] o Upgraded the OpenSSL shipped for Windows to 0.9.8i. [Kris] +o The SSLv2-support NSE script no longer prints duplicate cyphers if + they exist in the server's supported cypher list. [Kris] + o Updated IANA assignment IP list for random IP (-iR) generation. [Kris] diff --git a/scripts/SSLv2-support.nse b/scripts/SSLv2-support.nse index ff444c637..bd523f8ac 100644 --- a/scripts/SSLv2-support.nse +++ b/scripts/SSLv2-support.nse @@ -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