Nmap Development mailing list archives

Re: ip-geolocation-geobytes.nse error


From: Daniel Miller <bonsaiviking () gmail com>
Date: Fri, 31 Aug 2012 06:57:24 -0500

Christopher,

This should be fixed in r29703. The JSON parse error will continue to
occur, since the service returns invalid JSON when the limit of 20
requests per hour is exceeded, but I added some debug statements to
make it clear that that is what is happening, and prevented the
exception being thrown.

The output will look a bit different, since I also updated it to the
new structured output format.

Dan

On Thu, Aug 30, 2012 at 2:04 PM, Christopher Clements
<christopher.a.clements () gmail com> wrote:
I got this error today during a script scan:

NSE: Json:Syntax error near pos 106: Expected ',' or '}', got " input:
{"geobytes":{
"countryid":Limit Exceeded,
"country":"Limit Exceeded",
"fips":"Limit Exceeded",
"iso2":"Limit Exceeded",
"iso3":"Limit Exceeded",
"ison":Limit Exceeded,
"internet":"Limit Exceeded",
"comment":"",
"regionid":Limit Exceeded,
"region":"Limit Exceeded",
"code":"Limit Exceeded",
"adm":"Limit Exceeded",
"cityid":Limit Exceeded,
"city":"Limit Exceeded",
"latitude":Limit Exceeded,
"longitude":Limit Exceeded,
"timezone":"Limit Exceeded",
"dmaid":"803",
"dma":"Limit Exceeded",
"market":"Los Angeles",
"certainty":Limit Exceeded,
"locationcode":"Limit Exceeded",
"ipaddress":"Limit Exceeded"
}}


NSE: 'ip-geolocation-geobytes' (thread: 0x4975db0) against xx.xx.xx.xx
threw an error!
...al/bin/../share/nmap/scripts/ip-geolocation-geobytes.nse:74: attempt to
get length of local 'output' (a nil value)
stack traceback:
...al/bin/../share/nmap/scripts/ip-geolocation-geobytes.nse:74: in function
<...al/bin/../share/nmap/scripts/ip-geolocation-geobytes.nse:71>
(...tail calls...)
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/
_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/


Current thread: