Best Tool To Scan For Mac Addresses On Subnet

  1. Re: scan of subnet - no associated mac address information Peter.Cooper May 6, 2009 8:19 AM ( in response to kvanland ) This morning kvanland and I troubleshooted my instructions above regarding page size.
  2. Suggestion: Run an IP block scanner such as Angry IP Scanner. This will find all devices sitting on an IP in the scanned block. This will find all devices sitting on an IP in the scanned block. Then look at the device names to see what is what.

If the IP address in question is within one of your DHCP pools, it's also worth checking your DHCP server's logs for the MAC address it's attempting to assign that IP address to. Failing that, I would recommend logging on to the default router of the subnet that this problem is occurring on, and monitoring the ARP table. Basic scan or detailed info Discover the devices on your network automatically with the Spiceworks IP Scanner for basic information like OS and MAC Address. Or get detailed hardware and software information on your workstations and servers like CPU, storage, memory, installed software, serial number, and lots more.

Active4 years, 9 months ago

I am reading a Python book and in it there is a script to use scapy, the Python tool/module, to scan a subnet for any hosts that are up and report back their IP and MAC addresses. This script is an enhancement on a previous one that was calling /usr/bin/arping. That previous script only allowed one IP address at a time and was platform dependent on the arping tool being available. Apparently, this script (that does not work for me) is platform independent!

What is Angry IP Scanner. Angry IP Scanner is a free, light-weight, cross-platform, and open source tool to scan networks. It helps you to scan a range of IP addresses to find live hosts, open ports, and other relevant information of each and every IP address. MAC Address Scanner is the free desktop tool to remotely scan and find MAC Address of all systems on your local network. It allows you to scan either a single host or range of hosts at a time. During the scan, it displays the current status for each host.

If someone could look over the script and debug it that would be awesome. Here is the script:

The script does not work. It just prints that it is scanning stuff but that nothing was found.

How To Scan For Mac

I looked on this website and found a tutorial that also did not work. That website with the relevant content is here: http://www.secdev.org/projects/scapy/doc/usage.html#arp-ping

Please, see below for a sample of the output I obtain when running this script:

Does anyone out there know what I am missing?

UPDATE - SOLUTIONchange the srp function or method call to specify the exact interface to scan on like so:

user_loser
user_loseruser_loser
5681 gold badge9 silver badges23 bronze badges

1 Answer

Could be any number of things. I seem to have the script running just fine on my network using valid IP starting points.

Are you putting in a proper IP range?

For example I use:

Best Tool To Scan For Mac Addresses On Subnet Cheat

which produces the correct results and identical results to scapy's built in arping() function.

Freee snipping tool for mac But even veteran Mac users are often unaware of the many options available for getting the perfect screenshot.

Best Tool To Scan For Mac Addresses On Subnetting

So I think perhaps it's not the code exactly but the range you are attempting.

shark3yshark3y

Best Tool To Scan For Mac Addresses On Subnet

Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.

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