Nmap Development mailing list archives
Re: [nmap-svn] r33786 - in nmap: nselib scripts
From: Jacek Wielemborek <d33tah () gmail com>
Date: Fri, 07 Nov 2014 23:06:51 +0100
W dniu 07.11.2014 o 17:39, commit-mailer () nmap org pisze:
Author: dmiller Date: Fri Nov 7 16:39:26 2014 New Revision: 33786 Log: Use internal cipher/handshake scoring system instead of static datafile Modified: nmap/nselib/tls.lua nmap/scripts/ssl-enum-ciphers.nse Modified: nmap/nselib/tls.lua ============================================================================== --- nmap/nselib/tls.lua (original) +++ nmap/nselib/tls.lua Fri Nov 7 16:39:26 2014 @@ -583,6 +583,18 @@ ["SSL_RSA_FIPS_WITH_3DES_EDE_CBC_SHA"] = 0xFEFF, } +local function find_key(t, value) + local k, v + + for k, v in pairs(t) do + if v == value then + return k + end + end + + return nil +end +
IMHO find_key belongs more to NSELib.
Attachment:
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Sent through the dev mailing list http://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/
Current thread:
- Re: [nmap-svn] r33786 - in nmap: nselib scripts Jacek Wielemborek (Nov 07)
- Re: [nmap-svn] r33786 - in nmap: nselib scripts Daniel Miller (Nov 07)