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
- Host: GitHub
- URL: https://github.com/ndejong/cymru-lookup
- Owner: ndejong
- License: bsd-2-clause
- Created: 2019-09-28T04:44:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-28T05:03:29.000Z (over 5 years ago)
- Last Synced: 2025-02-10T06:14:14.881Z (3 months ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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#whoisThe 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.