When using the whoisClient and the LookupIPs function there are times when Cymru returns multiple ASNs (I haven't looked into why).
Because of the finished boolean checking the length of the response vs the capacity of the response some legitimate IPs are getting dropped from the response:
if len(resp) == cap(resp) {
finished = true
}
I added in some debugging
Raw Value: <AS> | <IP> | <BGP Prefix> | <CC> | <Registry> | <Allocated> | <AS Name> # Edited
isisp: whoisClient.LookupIPs: bad ASN count: 2 # related to issue 10
isisp: whoisClient.LookupIPs: Scan count: 2500
========================================================
isisp: whoisClient.LookupIPs: ATTENTION: saw <IP> 2 number of times # Edited
isisp: whoisClient.LookupIPs: ATTENTION: saw <IP> 2 number of times # Edited
isisp: whoisClient.LookupIPs: ATTENTION: saw <IP> 2 number of times # Edited
isisp: whoisClient.LookupIPs: ATTENTION: saw <IP> 2 number of times # Edited
isisp: whoisClient.LookupIPs: ATTENTION: saw <IP> 2 number of times # Edited
isisp: whoisClient.LookupIPs: ATTENTION: saw <IP> 2 number of times # Edited
isisp: whoisClient.LookupIPs: ATTENTION: saw <IP> 2 number of times # Edited
isisp: whoisClient.LookupIPs: ATTENTION: saw <IP> 2 number of times # Edited
========================================================
isisp: whoisClient.LookupIPs: Scanner Open? true
isisp: whoisClient.LookupIPs: Scanner Unprocessed Value: <AS> | <IP> | <BGP Prefix> | <CC> | <Registry> | <Allocated> | <AS Name> # Edited
isisp: whoisClient.LookupIPs: Scanner Open? true
isisp: whoisClient.LookupIPs: Scanner Unprocessed Value: <AS> | <IP> | <BGP Prefix> | <CC> | <Registry> | <Allocated> | <AS Name> # Edited
isisp: whoisClient.LookupIPs: Scanner Open? true
isisp: whoisClient.LookupIPs: Scanner Unprocessed Value: <AS> | <IP> | <BGP Prefix> | <CC> | <Registry> | <Allocated> | <AS Name> # Edited
isisp: whoisClient.LookupIPs: Scanner Open? true
isisp: whoisClient.LookupIPs: Scanner Unprocessed Value: <AS> | <IP> | <BGP Prefix> | <CC> | <Registry> | <Allocated> | <AS Name> # Edited
isisp: whoisClient.LookupIPs: Scanner Open? true
isisp: whoisClient.LookupIPs: Scanner Unprocessed Value: <AS> | <IP> | <BGP Prefix> | <CC> | <Registry> | <Allocated> | <AS Name> # Edited
isisp: whoisClient.LookupIPs: Scanner Open? true
isisp: whoisClient.LookupIPs: Scanner Unprocessed Value: <AS> | <IP> | <BGP Prefix> | <CC> | <Registry> | <Allocated> | <AS Name> # Edited
isisp: whoisClient.LookupIPs: Scanner Open? false
isisp: whoisClient.LookupIPs: Scan missed results count: 6
isisp: whoisClient.LookupIPs: Scanner Error: <nil>
When using the
whoisClientand theLookupIPsfunction there are times when Cymru returns multiple ASNs (I haven't looked into why).Because of the
finishedboolean checking the length of the response vs the capacity of the response some legitimate IPs are getting dropped from the response:I added in some debugging