Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #268129

Re: Commandline client to lookup MAC vendor

From "Jonathan Dowland" <jmtd@debian.org>
Newsgroups linux.debian.user
Subject Re: Commandline client to lookup MAC vendor
Date 2024-03-07 10:40 +0100
Message-ID <Ifioh-eZTo-1@gated-at.bofh.it> (permalink)
References <IfhVf-eZKn-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu Mar 7, 2024 at 8:50 AM GMT, Ralph Aichinger wrote:
> Several packages in Debian can somehow (either by embedding it or
> querying it from some common database) display the MAC Vendor
> information of network adapters (derived from hardware addresses). 
>
> One example is nmap, that displays the device vendor when scanning.
>
> Is there some commandline tool doing this directly in Debian? I know
> that there are websites that offer this as a service, but sometimes a
> CLI is more convenient.
>
> Alternatively, and if this information is stored in some shared
> databases, can this be queried e.g. from a Pyhton script? If so, how?

The nmap-common package ships the DB that nmap queries in a plain text
format: /usr/share/nmap/nmap-mac-prefixes

Example

    $ ip link show wlp0s20f3 | grep ether
        link/ether 90:09:df:ba:0c:cf brd ff:ff:ff:ff:ff:ff
    $ grep -i ^9009df /usr/share/nmap/nmap-mac-prefixes
    9009DF Intel Corporate


HTH,

-- 
Please do not CC me for listmail.

👱🏻	Jonathan Dowland
✎	 jmtd@debian.org
🔗	https://jmtd.net

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Commandline client to lookup MAC vendor Ralph Aichinger <ra@h5.or.at> - 2024-03-07 10:10 +0100
  Re: Commandline client to lookup MAC vendor "Jonathan Dowland" <jmtd@debian.org> - 2024-03-07 10:40 +0100
    Re: Commandline client to lookup MAC vendor Thomas Pircher <thp.debian@p5r.uk> - 2024-03-07 11:00 +0100
      Re: Commandline client to lookup MAC vendor Ralph Aichinger <ra@h5.or.at> - 2024-03-07 11:30 +0100
        Re: Commandline client to lookup MAC vendor Thomas Pircher <thp.debian@p5r.uk> - 2024-03-07 16:10 +0100
          Re: Commandline client to lookup MAC vendor Lee <ler762@gmail.com> - 2024-03-07 18:50 +0100
            Re: Commandline client to lookup MAC vendor Thomas Pircher <thp.debian@p5r.uk> - 2024-03-07 22:30 +0100
  Re: Commandline client to lookup MAC vendor Jeffrey Walton <noloader@gmail.com> - 2024-03-08 01:40 +0100

csiph-web