ASN (and MAC address) lookup plugin for Sopel IRC bots
Project description
sopel-asn
ASN (and MAC address) lookup plugin for Sopel IRC bots
Installing
Releases are hosted on PyPI, so after installing Sopel, all you need is pip:
$ pip install sopel-asn
Using
Origin lookup — Find what ASN an IP belongs to:
<dgw> .asn 208.67.222.222
<Sopel> [ASN] 208.67.222.0/24 | AS36692 | Cisco OpenDNS, LLC | US | ARIN |
0001-01-01 | more info: https://bgp.tools/as/36692
<dgw> .asn 2001:4860:b002::68
<Sopel> [ASN] 2001:4860::/32 | AS15169 | Google LLC | US | ARIN | 2005-03-14 |
more info: https://bgp.tools/as/15169
AS info — Find the name of an ASN's registrant:
<dgw> .asn 15169
<Sopel> [ASN] AS15169 | Google LLC | US | ARIN | 2000-03-30 | more info:
https://bgp.tools/as/15169
MAC address info — Find the vendor name assigned to a MAC address:
<dgw> .mac 00-1a-2b-3c-4d-5e
<Sopel> [ASN] MAC 00:1A:2B:3C:4D:5E is registered to Ayecom Technology Co., Ltd..
Background
This plugin performs network lookups via bgp.tools using
the whois protocol, as documented at https://bgp.tools/kb/api. All data provided
is best-effort; allocation dates are particularly flaky (often 0001-01-01).
Changelog
0.2.0
Simplified commands: .asn now handles ASNs, IPv4, and IPv6.
Using bgp.tools as backend instead of Team Cymru's DNS interface. Peer lookup
(.asnp command) is sadly no longer supported.
There is a new .mac command to look up the vendor (OUI) of hardware
MAC addresses, however.
0.1.0
First release of sopel-asn.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sopel_asn-0.2.0.tar.gz.
File metadata
- Download URL: sopel_asn-0.2.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c771c5a70994da9f3b394b1d7fa07f90260562445373a69201588ca2f7c45fb4
|
|
| MD5 |
5cc2c4287ec835f4be188725fec21c42
|
|
| BLAKE2b-256 |
afba6bb09fc06d250059785eb645fa9d792f9f7378dd73419276950854370de6
|
Provenance
The following attestation bundles were made for sopel_asn-0.2.0.tar.gz:
Publisher:
pypi.yml on dgw/sopel-asn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_asn-0.2.0.tar.gz -
Subject digest:
c771c5a70994da9f3b394b1d7fa07f90260562445373a69201588ca2f7c45fb4 - Sigstore transparency entry: 585737288
- Sigstore integration time:
-
Permalink:
dgw/sopel-asn@e494b28b11d4a8a91e43fa8bc83132514c98aaf8 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/dgw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@e494b28b11d4a8a91e43fa8bc83132514c98aaf8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file sopel_asn-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sopel_asn-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3f0b3365cd228e1c977479cd557f2a74c26a667cdd8bbcb7e1f2dcd4cee98156
|
|
| MD5 |
ee9e19d2aeb80af4326d818bcb5fb592
|
|
| BLAKE2b-256 |
bd232a8e0995d36cab9882395e03352008452ca3901fe64350495b60b91063e7
|
Provenance
The following attestation bundles were made for sopel_asn-0.2.0-py3-none-any.whl:
Publisher:
pypi.yml on dgw/sopel-asn
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sopel_asn-0.2.0-py3-none-any.whl -
Subject digest:
3f0b3365cd228e1c977479cd557f2a74c26a667cdd8bbcb7e1f2dcd4cee98156 - Sigstore transparency entry: 585737297
- Sigstore integration time:
-
Permalink:
dgw/sopel-asn@e494b28b11d4a8a91e43fa8bc83132514c98aaf8 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/dgw
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@e494b28b11d4a8a91e43fa8bc83132514c98aaf8 -
Trigger Event:
release
-
Statement type: