Exploit databaseDownload repository ZIP
GH-0ec719dd313cb375ce38ea74467d38a6
komomon/cve-2020-16898--exp-poc
Sources for CVE-2020-16898
13 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files1
komomon/cve-2020-16898--exp-pocRevision 1039bfb59197
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
poc/CVE-2020-16898_Checker.ps1
PowerShell · 1,237 bytes#######################################################################################################
### 14/10/2020 - Written by Cyril Pineiro / SYNAPSYS-IT
### Check if Network Interface is Vulnerable to CVE-2020-16898 & CVE-2020-16899
### Returns Interface Index and Alias
#######################################################################################################
Clear
$interfaces = (Get-NetIPInterface | where {$_.AddressFamily -eq "IPv6"}).ifIndex
foreach ($interface in $interfaces)
{
[bool]$vuln = $false
$output = netsh int ipv6 sh interfaces interface=$interface
foreach ($Line in $output)
{
if($Line.Contains("6106") -and $Line.Contains("enabled"))
{
[bool]$vuln = $true
}
}
$NetIPInterfaceAlias = ((Get-NetIPAddress -InterfaceIndex $interface | Select-Object InterfaceAlias)[0]).InterfaceAlias
if ($vuln)
{
Write-Host "Interface '$($interface)' named '$($NetIPInterfaceAlias)' is Vulnerable to CVE-2020-16898 & CVE-2020-16899" -ForegroundColor Red
}
else
{
Write-Host "Interface '$($interface)' named '$($NetIPInterfaceAlias)' is Not Vulnerable to CVE-2020-16898 & CVE-2020-16899" -ForegroundColor Green
}
}