Exploit databaseDownload repository ZIP
GH-88d8bc551618926a04536090300b4292
dungnm24/cve-2020-0796
Sources for CVE-2020-0796
81 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files12
dungnm24/cve-2020-0796Revision fe7aebbe1789
- ↑..Parent directory
- RunTestCasesByBinariesAndFilter.ps1
- RunTestCasesByBinariesAndFilter.sh
- checkMMA.cmd
- checkNuGet.cmd
- checkWix.cmd
- runTestCase.cmd
- setBuildTool.ps1
- setMSTestPath.cmd
- setPtfVer.cmd
- setTestSuiteVer.cmd
- setVsPath.cmd
- setVsTestPath.cmd
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
WindowsProtocolTestSuites/common/RunTestCasesByBinariesAndFilter.ps1
PowerShell · 1,266 bytes# Copyright (c) Microsoft. All rights reserved.
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
param(
[array]$Binaries, # An array containing name of the test binaries.
[string]$Filter = "", # Expression used to filter test cases.For example, "TestCategory=BVT&TestCategory=SMB311" will filter out test cases which have test category BVT and SMB311.
[switch]$DryRun = $false # If set, just list all filtered test cases instead of running tests actually.
)
$invocationPath = Split-Path $MyInvocation.MyCommand.Definition -Parent
$rootPath = Split-Path $invocationPath -Parent
$binPath = Join-Path $rootPath "Bin"
$testResultPath = Join-Path $rootPath "TestResults"
$testBinariesWithPath = $Binaries | ForEach-Object -Process { Join-Path $binPath $_ }
$testBinariesString = [String]::Join(" ", $testBinariesWithPath)
if([String]::IsNullOrEmpty($Filter))
{
$TestCaseFilter = ""
}
else
{
$TestCaseFilter = "--filter ""$Filter"""
}
if($DryRun)
{
$cmd = "dotnet test $testBinariesString $TestCaseFilter --list-tests"
}
else
{
$cmd = "dotnet test $testBinariesString $TestCaseFilter --logger trx --ResultsDirectory ""$testResultPath"""
}
Invoke-Expression $cmd