0x10000040 Sˆ×ÖÕ 547ÔÁÒ#S‹½–_o›0Åßû)Äi÷²"¨ÏM â¶Ùƒ2xßô›ðÒ2@Ïôú„œ~˾ð›h»žðšðœË–\ à6à:~ËÄ�¦ñŸÖÀ_þÃÁîn(¶JêÝØk÷}©ð Uˆ×ÖÕ 523ÔÁÒ U‹Å•QoÓ0Çß÷)Œxk®m:Ä6'h4•VѵU¡É‰ÝÆZGömYùô$MQ Jal•xÊåò¿îw¶lö*˜ £/󹊮'dþñýd<$´ðÉQÐ|8ÝÀhJ M‹s€²,�Òu´YBBŠ«l�JÐ(¨ÂêœBX*¹¨ž„¡ÂLúã\ÈG¢ô=Z%ä2CV¡ìT¡áf Ñ•#8r:aÐVV°õb±ëú½çØUU›vx¼q­Cã3LÉÏÔ2÷(ê‚úL­–Ěģ �[ˆ3žß9Kµ „gèѯãáì[¥LëjŸq’¹ð軡7½˜y—ÔŸò•dÀÛ5×�fÂ-’•j¡¤8(¾iÄ7êûaàÑÒ&F¨t¾“B…¸�šè̼b=­R³¯j$âoÓàÉ/Ø_†£iŒÃf$¢¶Øu÷¤Å¡þœ™# ”‘ j³Þöߘ½Îc[\ü|%ÛîŒZ¦H}B:¤UùH(q)úµÂ¨zË9õö¦þ.Þïõ·æúÝ~¿ÓtÜ.é�ž»o9 ì9Rd|] {Ÿ£ZöVŽ8ÓZÜfÚÚ[# mÐ)Ä‚ú­écÐõÏ^NwŸßåºÌŸ‡æe^•>qßþg¼V¸£ õÎþ€öÄc¶.ƒÍéÍ ¹ ~ _LxƒLWˆl–Ðz¾”Jj"T%� ã`S�ÿ�þBVl±‘Ɔó¯ à?Ð 287Öa–äY>””¾R( Å Œ»pBS�ÿÔW# Generated by roxygen2: do not edit by hand export(list_extensions) export(markdown_commonmark) export(markdown_html) export(markdown_latex) export(markdown_man) export(markdown_text) export(markdown_xml) useDynLib(commonmark,R_list_extensions) useDynLib(commonmark,R_render_markdown) YˆÉ�þHønQ8ëq‘â¼@?Ñ ƒdAs×¾Ô �Ylocal nmap = require "nmap" local stdnse = require "stdnse" local table = require "table" local coroutine = require "coroutine" _ENV = stdnse.module("geoip", stdnse.seeall) --- -- Consolidation of GeoIP functions. -- -- @author "Mak Kolybabi " -- @copyright Same as Nmap--See https://nmap.org/book/man-legal.html --- Add a geolocation to the registry -- @param ip The IP that was geolocated -- @param lat The latitude in degrees -- @param lon The longitude in degrees add = function(ip, lat, lon) local lat_n = tonumber(lat) if not lat_n or lat_n < -90 or lat_n > 90 then stdnse.debug1("Invalid latitude for %s: %s.", ip, lat) return end local lon_n = tonumber(lon) if not lat_n or lon_n < -180 or lon_n > 180 then stdnse.debug1("Invalid longitude for %s: %s.", ip, lon) return end if not nmap.registry.geoip then nmap.registry.geoip = {} end nmap.registry.geoip[ip] = { latitude = lat, longitude = lon } end --- Check if any coordinates have been stored in the registry --@return True if any coordinates have been returned, false otherwise empty = function() return not nmap.registry.geoip end --- Retrieve the table of coordinates by IP --@return A table of coordinates keyed by IP. get_all_by_ip = function() if empty() then return nil end return nmap.registry.geoip end --- Retrieve a table of IPs by coordinate --@return A table of IPs keyed by coordinate in lat,lon format get_all_by_gps = function() if empty() then return nil end local t = {} for ip, coords in pairs(get_all_by_ip()) do local key = coords["latitude"] .. "," .. coords["longitude"] if not t[key] then t[key] = {} end table.insert(t[key], ip) end return t end -- Order in which field names will be shown in XML local field_order = { "latitude", "longitude", "city", "region", "country" } --- Location object -- -- The object supports setting the following fields using functions like -- set_fieldname: -- * latitude -- * longitude -- * city -- * region -- * country -- -- The location object is suitable for returning from a script, and will -- produce appropriate string and structured XML output. Location = { new = function(self,o) o = o or {} setmetatable(o, self) self.__index = self return o end, -- Ensure fields are put in the XML in proper order __pairs = function(self) local function iterator () for i, key in ipairs(field_order) do