-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to update ieee-oui.txt
on macOS?
#165
Comments
I realized I could specify a custom MAC file via So for now, I came up with this UBNT_OUI_FILE='ubnt-ouis.txt'
IEEE_OUI_DB='https://standards-oui.ieee.org/oui/oui.txt'
#grab latest ouis
curl -Lso- "$IEEE_OUI_DB" |
awk 'BEGIN { FS="\t"; OFS="\t" } /hex.*Ubiquiti/ { print substr($1, 1, 8), $3}' >"$UBNT_OUI_FILE"
arp-scan \
--interface en1 \
--localnet \
--plain \
--macfile="$UBNT_OUI_FILE" |
grep Ubiquiti Still would love to know if the original thing is possible... |
Thanks for reporting this issue. The easiest way to add a Mac address prefix is to edit the It looks like you are close to getting get-oui working. If you add a I realise the perl dependencies are a pain. Ideally arp-scan would move away from perl, but I've not found a better alternative so far. |
Thank you. 🚀 For now, the small helper script above has got me sorted. I wish I knew more about Perl. |
same problem on voidlinux:
the perl script is this :
the error is on $ua->get($url), but how to debug ? Max |
I've got arp-scan 1.10.0 on macOS 13.4.1. Installed via Homebrew.
I noticed today, for example, mac
d8:b3:70
is not in the standard OUI db that comes with this version. I also noted there is aget-oui
program that can update these db's. When I tried it, it failed with:Ok, so researching that it seems my system needs Perl and also the
LWP::UserAgent
module. Off I went down a bit of a rabbit hole... involvingsudo cpan
followed by trying to installcpanm
but failing, then eventually runningsudo cpan
followed byinstall LWP::UserAgent
manually, which spit out a huge wall of text around 5,542 lines long of various spew, warnings and compilation.Evenutally that ceased and it appeared I had the precious
LWP::UserAgent
module...so I tried againOk, back to
sudo cpan
and theninstall Text::CSV
...another 700+ lines of text...
Then
Here is where I gave up.
Does anyone know how to update this simple text file and put it in the correct place for arp-scan to find it?
Thank you 🙏
The text was updated successfully, but these errors were encountered: