diff --git a/ARP-Scanner/Program.cs b/ARP-Scanner/Program.cs index 043d903..61e0ab8 100644 --- a/ARP-Scanner/Program.cs +++ b/ARP-Scanner/Program.cs @@ -54,8 +54,10 @@ internal static class Program int localProcessedIpAddressesCount = Interlocked.Increment(ref processedIpAddressesCount); if (mac is not null) { - List info = new List { ipAddress.ToString(), mac.ToString() }; - info.AddRange(macVendorLookup.GetInformation(mac.ToString())); + string formattedMac = BitConverter.ToString(mac.GetAddressBytes()); + + List info = new List { ipAddress.ToString(), formattedMac }; + info.AddRange(macVendorLookup.GetInformation(formattedMac)); ConsoleExt.WriteLine($"Progress: {localProcessedIpAddressesCount}/{ipAddressesCount} [{100d / ipAddressesCount * localProcessedIpAddressesCount:0.00}%] | Active: {ipAddress}", ConsoleColor.Green); activeHosts.Add(info.ToArray()); }