lemme learn ya a thing or two.

 why would i need to make this at all?

Speaking from experience, it helps to know what's going on with your network. As you may inpect your Wireshark logs, or monitor traffic via Task Manager, you'll eventually want to know who is on your network. This may sometimes include identifying hardware that isn't yours. For example, I despise Apple devices. If I see an Apple device on my network, I'll know to take care of it immediately with whatever steps seem appropriate.


what the hell is a mac address?

A Media Access Control (MAC) Address is essentially the ID of what your Network Interface Controller (NIC) is. This differs from an IP address, as it isn't designed to be changed. That being said, there's ways around everything. The long and the veiny of it though, is that it's a series of six sets of hexadecimal digits separated by colons. It tells the network what you're likely running hardware-wise.


why python?

As much as I hate Python, it's still a very useful language. When working with APIs tying into CLI things, it works pretty well without needing any extra fluff. It's also easier for non-programmers to grasp what the fuck is going on, as it's designed to be readable to anyone that isn't blind.


stuff needed

  • python
  • a text editor
  • an internet connection


how to make the script

Get ready, this'll be a quick one.

We're going to start off opening our text editor, and importing the requests module.



Next, we're going to create our user input. We don't have to do this, but it makes it more convenient than opening our source file and putting in new MAC addresses, or making a list and using it (unless you're doing bulk verification, in which case more power to you).



Now we'll go ahead and make a for loop, and input the API URL for macvendors.com. It's a website with a whole database of manufacturers and matching MAC address formulas, so we don't need to make our own complicated thing for it - they did the hard stuff for us!



And just like that, we're done! Now go ahead and run it, and enter your MAC address of choice when prompted, and press Enter!



Clam, bam, thank you ma'am!


This script comes in handy a lot more than you'd think, so I'd highly recommend memorizing it, and adding on your own tweaks as you want.


tutorials on whatever, daily. doesn't have to be tech-related, but it mostly is.