mirror of
https://github.com/Stone-Red-Code/ARP-Scanner.git
synced 2026-09-04 00:46:04 +02:00
Small fix
This commit is contained in:
@@ -54,8 +54,10 @@ internal static class Program
|
|||||||
int localProcessedIpAddressesCount = Interlocked.Increment(ref processedIpAddressesCount);
|
int localProcessedIpAddressesCount = Interlocked.Increment(ref processedIpAddressesCount);
|
||||||
if (mac is not null)
|
if (mac is not null)
|
||||||
{
|
{
|
||||||
List<string> info = new List<string> { ipAddress.ToString(), mac.ToString() };
|
string formattedMac = BitConverter.ToString(mac.GetAddressBytes());
|
||||||
info.AddRange(macVendorLookup.GetInformation(mac.ToString()));
|
|
||||||
|
List<string> info = new List<string> { ipAddress.ToString(), formattedMac };
|
||||||
|
info.AddRange(macVendorLookup.GetInformation(formattedMac));
|
||||||
ConsoleExt.WriteLine($"Progress: {localProcessedIpAddressesCount}/{ipAddressesCount} [{100d / ipAddressesCount * localProcessedIpAddressesCount:0.00}%] | Active: {ipAddress}", ConsoleColor.Green);
|
ConsoleExt.WriteLine($"Progress: {localProcessedIpAddressesCount}/{ipAddressesCount} [{100d / ipAddressesCount * localProcessedIpAddressesCount:0.00}%] | Active: {ipAddress}", ConsoleColor.Green);
|
||||||
activeHosts.Add(info.ToArray());
|
activeHosts.Add(info.ToArray());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user