From cdfac4d6b27dd411c0548000325c73c1bb55964e Mon Sep 17 00:00:00 2001 From: fyodor Date: Tue, 11 Nov 2008 20:33:48 +0000 Subject: [PATCH] spell check: recognise -> recognize --- scripts/asn-query.nse | 8 ++++---- scripts/whois.nse | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/asn-query.nse b/scripts/asn-query.nse index d06beb351..0da72ac04 100644 --- a/scripts/asn-query.nse +++ b/scripts/asn-query.nse @@ -122,7 +122,7 @@ action = function( host ) break end - -- recognise and organise fields from response + -- recognize and organise fields from response local success = result_recog( response, asn_type, records, host.ip ) -- un-replace arpa zone @@ -237,7 +237,7 @@ end -- Extracts fields from the supplied DNS answer sections and generates a records entry for each. -- @param answers Table containing string DNS answers. -- @param asn_type String denoting whether the query is for Origin or Peer ASN. --- @param recs Table of existing recognised answers to which to add (refer to the records table inside action. +-- @param recs Table of existing recognized answers to which to add (refer to the records table inside action. -- @return Boolean true if successful otherwise false. function result_recog( answers, asn_type, recs, discoverer_ip ) @@ -314,10 +314,10 @@ end --- --- Processes records which are recognised DNS answers by combining them into unique BGPs before caching +-- Processes records which are recognized DNS answers by combining them into unique BGPs before caching -- them in the registry and returning combined_records. If there aren't any records (No Such Name message -- or DNS failure) we signal this fact to other threads by using the cache and return with an empty table. --- @param records Table of recognised answers (may be empty). +-- @param records Table of recognized answers (may be empty). -- @param output String non-answer message or an empty table. -- @param ip String host.ip. -- @return Table containing combined records for the target (or an empty table). diff --git a/scripts/whois.nse b/scripts/whois.nse index b0d3c959c..3d213899f 100644 --- a/scripts/whois.nse +++ b/scripts/whois.nse @@ -12,7 +12,7 @@ to help ensure the data is current. If, for any reason, these files are not ava of Whois services are queried in turn until: the desired record is found; or a referral to another (defined) Whois service is found; or until the sequence is exhausted without finding either a referral or the desired record. -The script will recognise a referral to another Whois service if that service is defined in the script and will continue by +The script will recognize a referral to another Whois service if that service is defined in the script and will continue by sending a query to the referred service. A record is assumed to be the desired one if it does not contain a referral. To reduce the number unnecessary queries sent to Whois services a record cache is employed and the entries in the cache can be @@ -583,7 +583,7 @@ function analyse_response( tracking, ip, response, data ) meta = meta or nmap.registry.whois.whoisdb[this_db] - -- do we recognise objects in the response?. + -- do we recognize objects in the response?. if type( meta ) == "table" and type( meta.fieldreq ) == "table" and type( meta.fieldreq.ob_exist ) == "string" then have_objects = response:match( meta.fieldreq.ob_exist ) else @@ -591,7 +591,7 @@ function analyse_response( tracking, ip, response, data ) have_objects = false end - -- if we do not recognise objects check for an known error/non-object message + -- if we do not recognize objects check for an known error/non-object message if not have_objects then stdnse.print_debug( 4, "%s %s %s has not responded with the expected objects.", filename, ip, this_db ) local tmp, msg @@ -615,14 +615,14 @@ function analyse_response( tracking, ip, response, data ) end end end - -- if we've recognised a non-object message, + -- if we've recognized a non-object message, if msg then add_to_cache( ip, nil, nil, "Message from " .. nmap.registry.whois.whoisdb[this_db].hostname .. "\n" .. msg ) return data end end - -- the query response may not contain the set of objects we were expecting and we do not recognise the response message. + -- the query response may not contain the set of objects we were expecting and we do not recognize the response message. -- it may contain a record mirrored (or found by recursion) from a different service if not have_objects then local foreign_obj