An open API service indexing awesome lists of open source software.

https://github.com/ndejong/cymru-lookup

A bash-wrapper tool around the GNU version of netcat and the ip-to-asn lookup service provided by cymru
https://github.com/ndejong/cymru-lookup

Last synced: about 1 month ago
JSON representation

A bash-wrapper tool around the GNU version of netcat and the ip-to-asn lookup service provided by cymru

Awesome Lists containing this project

README

        

# cymru-lookup

The `cymru-lookup` tool is a bash-wrapper tool around the [GNU version of netcat](http://netcat.sourceforge.net/)
and the ip-to-asn lookup service provided by cymru, described here
- https://www.team-cymru.com/IP-ASN-mapping.html#whois

The last octet of (IPv4) input addresses is stripped and thus grouped into their
respective /24 netblock, this is bacause the smallest possible public netblock
via external-BGP is a /24.

## Project
* [github.com/ndejong/cymru-lookup](https://github.com/ndejong/cymru-lookup)

## Usage
```
Usage: cymru-lookup
must be a flat file containing ip-addresses only.
Duplicate address values are counted and shown in the cymru output
comment column shown as the 'addr-count:' value.
```

## Example
```
$ ./cymru-lookup ipv4-example-list.txt
Okay - input file: ipv4-example-list.txt
Okay - output file: ipv4-example-list.txt-cymru.txt

$ cat ipv4-example-list.txt-cymru.txt
Bulk mode; whois.cymru.com [2019-09-28 04:58:45 +0000]
19281 | 9.9.9.0 | hit-count:1 | QUAD9-AS-1 - Quad9, US
15169 | 8.8.8.0 | hit-count:1 | GOOGLE - Google LLC, US
13335 | 1.1.1.0 | hit-count:1 | CLOUDFLARENET - Cloudflare, Inc., US
```

## Authors
[Nicholas de Jong](https://nicholasdejong.com)

## License
BSD-2-Clause - see LICENSE file for full details.