Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sopel_asn-0.2.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sopel_asn-0.2.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

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

Hashes for sopel_asn-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c771c5a70994da9f3b394b1d7fa07f90260562445373a69201588ca2f7c45fb4
MD5 5cc2c4287ec835f4be188725fec21c42
BLAKE2b-256 afba6bb09fc06d250059785eb645fa9d792f9f7378dd73419276950854370de6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_asn-0.2.0.tar.gz:

Publisher: pypi.yml on dgw/sopel-asn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for sopel_asn-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f0b3365cd228e1c977479cd557f2a74c26a667cdd8bbcb7e1f2dcd4cee98156
MD5 ee9e19d2aeb80af4326d818bcb5fb592
BLAKE2b-256 bd232a8e0995d36cab9882395e03352008452ca3901fe64350495b60b91063e7

See more details on using hashes here.

Provenance

The following attestation bundles were made for sopel_asn-0.2.0-py3-none-any.whl:

Publisher: pypi.yml on dgw/sopel-asn

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page