Ajouter Create-OUIListFromWeb.ps1
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#$LatestOUI = Get-Content -Path "$PSScriptRoot\oui_from_web.txt"
|
||||
$LatestOUIs = (Invoke-WebRequest -Uri "https://standards-oui.ieee.org/oui/oui.txt").Content
|
||||
|
||||
$Output = ""
|
||||
|
||||
foreach($Line in $LatestOUIs -split '[\r\n]')
|
||||
{
|
||||
if($Line -match "^[A-F0-9]{6}")
|
||||
{
|
||||
# Line looks like: 2405F5 (base 16) Integrated Device Technology (Malaysia) Sdn. Bhd.
|
||||
$Output += ($Line -replace '\s+', ' ').Replace(' (base 16) ', '|').Trim() + "`n"
|
||||
}
|
||||
}
|
||||
|
||||
Out-File -InputObject $Output -FilePath "$PSScriptRoot\Resources\oui.txt"
|
||||
Reference in New Issue
Block a user