license-keyĪs downloads are only allowed/possible using a valid MaxMind account, you need to provide a valid license key in your configuration file. , no localization support) where latitude and longitude are separated by a / or a, like -l 12.345678/-9.876543 or -local=12,3456,45,6789. This is also useful when there is no outbound connection possible or when you do not move location and you want to restrict network requests. (degree-minute-second-notation is not yet supported). When running the tool from a different location than where the IP access is to be analyzed for or when the network connection will not report a location that would make sense (like working from a cloud or running over one or more VPN connections), one can set the location of the base in decimal notation. Sets the local location coordinates for use with distances. local-locationĬommand line option : -l lat/lon or -local=lat/lon With this option, JSON output is done pretty (indented). If set from the command-line, this implies the -json option.
json-prettyĬommand line option : -J or -json-pretty With this option, the output will be in JSON format. The default output for the information is plain text. The value for dsn in the configuration file(s) If the connection works, the tables used by this tool will be created if not yet present. See "DATABASE" for the (documented) list of supported database types. This option, if True, will also implicitly disable the distance and whois information. This option will disable the output of less-informative information like location, EU-membership, satellite and proxy. This will not work if there is no network connection or outside traffic is not allowed. If Net::Whois::IP is installed, and this option is true, this module will be used to retrieve the whois information. This will - of course - not work if there is no network connection or outside traffic is not allowed. The location of the tool is either locally stored in your configuration (see -local-location) or fetched using the result of the urls or geoiptool. There is no command line option for miles. Choosing a configuration of miles instead of True, Yes, or 1 will show the distance in miles. The default is to show the distance in kilometers. If both the location of the tool and the location of the requested IP are known, calculate the distance between them.
Only in effect when used with -fetch: when new data files from MaxMind have successfully been fetched and any of these is newer that what the database contains, update the database with the new data. The recognized options and the command line equivalences are fetchįetch new databases from the MaxMind site. The use of - in option names is allowed and will be translated to _. For readability you can prefix use_ to most options (it is ignored). The values False and No (case insensitive) are the same as 0 and the values True and Yes are equal to 1.
Where the : and = are equal and whitespace around them is optional and ignored.
Where $home is either of $HOME, $USERPROFILE, or $HOMEPATH. All existing files is read (in this order) if it is only writable by the author (mode 0640 should do). It tests for existence of the files listed here. The tool allows the use of configuration files. This information can optionally be extended with information from online WHOIS services and or derived data, like distance to the location of the server this tool runs on or a configured local location. This tool uses a database to use the (pre-fetched) GeoIP2 data from MaxMind to show related geographical information for IP addresses. \".maxmind_db\") or\n nmap.fetchfile(\"nselib/data/GeoLiteCity.dat\"))\nend\n\nhostrule = function(host)\n if nmap.address_family() ~= \"inet\" then\n stdnse.verbose1(\"Only IPv4 is currently supported.\")\n return false\n end\n local is_private, err = ipOps.isPrivate( host.ip )\n if is_private then\n return false\n end\n if not get_db_file() then\n stdnse.verbose1(\"You must specify a Maxmind database file with the maxmind_db argument.\")\n stdnse.Geoip - a tool to show geographical data based on hostname or IP address(es) SYNOPSIS geoip -help \n\nlocal function get_db_file()\n return (stdnse.get_script_args(SCRIPT_NAME.