Grep Tool For Mac

Active4 months ago

Several other GREP tools for Windows are just as free as for unix/linux. Indeed, this is what I love about the Windows ecosystem -- lots of free, if that's your main criterion, AND the ecosystem often supports paying developers for exploring extended amounts of functionality, such as with PowerGREP. Windows Grep is a tool for searching files for text strings that you specify. Although Windows and many other programs have file searching capabilities.

I have found some tools that seems to update the OUI MAC address vendor database on my system, like get-oui, airodump-ng-oui-update or update-oui :

But if I search for IPs on my network:

As long as there are some MACs reported as Unknown vendor, I would like to search on any OUI database for its info.

What is the proper command-line way to perform this search?
Maybe something like:

Note: I know that using the web browser I can google for the MAC's first 3 pairs, but I would like some command-line method, so I could script it or use via remote login (SSH).

Grep Gui Mac Os X

Sopalajo de ArrierezSopalajo de Arrierez
1,93111 gold badges36 silver badges66 bronze badges

7 Answers

Although it could be written more elegantly, the following works across Linux distros without any dependencies on specialized packages. It parses the output of the IP command, isolates the vendor part of the mac address into a variable which is finally grep'ed through an online DB of vendor prefixes.

With a bit of creativity you could adapt this to execute remotely via ssh. I've seen other suggestions to identify vendor details using dmidecode for OS fingerprinting, but experienced inconsistent results with that tool when testing. On Raspberry Pi dmidecode fails totally. HTH-

F1LinuxF1Linux

I do not think there is an automated tool to do what you ask, but can be done by working directly on files oui.txt.

First of all it identifies the file downloaded, for example:

then search for the string you are interested. You must remove : or instead insert a -:

Itool For Mac

LilloXLilloX

A similar answer to the one of LilloX, but using nMap (if installed in the system):

Supposedly working with any other program that stores OUI info, like airodump-ng-oui-update (to oui.txt file in this case), or several others:

  • /usr/share/btscanner/oui.txt
  • /usr/share/bluelog/oui.txt
  • /usr/share/ieee-data/oui.txt
  • /usr/share/golismero/thirdparty_libs/netaddr/eui/oui.txt
  • /usr/share/metasploit-framework/vendor/bundle/ruby/2.1.0/gems/packetfu-1.1.11/examples/oui.txt
  • /etc/unicornscan/oui.txt
  • /var/lib/ieee-data/oui.txt
Sopalajo de ArrierezSopalajo de Arrierez

Grep Tool For Windows 10 Free

1,93111 gold badges36 silver badges66 bronze badges

You can retrieve the actual vendor by making a request using something like CURL to this API:

OR

For the unknown MAC addresses listed, it returned the following results:

To use the service, you need to obtain an apiKey which is free if you're under 1000 requests a day.

Dmitrii SDmitrii S

I have written a script for updating oui and iab-files. Main-problem is, that the form of nmap-files is not the same as for btscan or arpwatch etc., they often have different forms (MAC-Address with double-points, with hyphens, without delimiters, upper cases, lower cases etc.

You could try this script, it is stored at https://github.com/burningfog/refresh_oui.

Grep Tool For MacItool

Please read the readme-file and if there are any questions give me a hint per mail please.If there are other tools than named in github, please give me the path for the oui-file and some lines from this file so I can take a look on that form.

GreetingsBurning Fog

burningfogburningfog
sjassjas

Grep Application Mac

Michael Mrozek
64.9k29 gold badges198 silver badges216 bronze badges
FabioMFabioM

Not the answer you're looking for? Browse other questions tagged mac-address or ask your own question.