1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
#Search MAC in https://standards.ieee.org/ #Group by MAC $macs=gc .\mac.txt | Group-Object #List MAC foreach($mac in $macs.Name) { $mac.Substring(0,8) $url="https://standards.ieee.org/cgi-bin/ouisearch?"+$mac.Substring(0,8) $result=Invoke-WebRequest $url #Here are the results of your search through the public section of the IEEE Standards MA-L database report for MAC $res=$result.AllElements | Where tagName -eq "PRE" #Save MAC, IP, and information about MAC $ip = arp -a | select-string "$mac" |% { $_.ToString().Trim().Split(" ")[0] } $mac,$ip, $res.innerText | Out-File list.txt -Append } |