Merge branch 'master' into linpeasdevelop
This commit is contained in:
commit
a15c4fa9d8
@ -96,7 +96,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -100,7 +100,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -77,7 +77,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -80,7 +80,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
35
winPEAS/winPEASexe/winPEAS/3rdParty/Watson/Msrc/CVE-2020-0796.cs
vendored
Normal file
35
winPEAS/winPEASexe/winPEAS/3rdParty/Watson/Msrc/CVE-2020-0796.cs
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
using System.Linq;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
namespace winPEAS._3rdParty.Watson.Msrc
|
||||||
|
{
|
||||||
|
internal static class CVE_2020_0796
|
||||||
|
{
|
||||||
|
private const string name = "CVE-2020-0796";
|
||||||
|
|
||||||
|
public static void Check(VulnerabilityCollection vulnerabilities, int buildNumber, List<int> installedKBs)
|
||||||
|
{
|
||||||
|
var supersedence = new List<int>();
|
||||||
|
|
||||||
|
switch (buildNumber)
|
||||||
|
{
|
||||||
|
case 18362:
|
||||||
|
case 18363:
|
||||||
|
|
||||||
|
supersedence.AddRange(new int[] {
|
||||||
|
4551762
|
||||||
|
});
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
|
{
|
||||||
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -81,7 +81,7 @@ namespace winPEAS._3rdParty.Watson.Msrc
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (supersedence.Intersect(installedKBs).Any())
|
if (!supersedence.Intersect(installedKBs).Any())
|
||||||
{
|
{
|
||||||
vulnerabilities.SetAsVulnerable(name);
|
vulnerabilities.SetAsVulnerable(name);
|
||||||
}
|
}
|
||||||
|
@ -100,6 +100,10 @@ namespace winPEAS._3rdParty.Watson
|
|||||||
new Vulnerability(
|
new Vulnerability(
|
||||||
id: "CVE-2020-1013",
|
id: "CVE-2020-1013",
|
||||||
exploits: new string[] { "https://www.gosecure.net/blog/2020/09/08/wsus-attacks-part-2-cve-2020-1013-a-windows-10-local-privilege-escalation-1-day/" }
|
exploits: new string[] { "https://www.gosecure.net/blog/2020/09/08/wsus-attacks-part-2-cve-2020-1013-a-windows-10-local-privilege-escalation-1-day/" }
|
||||||
|
),
|
||||||
|
new Vulnerability(
|
||||||
|
id: "CVE-2020-0796",
|
||||||
|
exploits: new string[] { "https://github.com/danigargu/CVE-2020-0796 (smbghost)" }
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -73,6 +73,7 @@ namespace winPEAS._3rdParty.Watson
|
|||||||
CVE_2020_0668.Check(vulnerabilities, buildNumber, installedKBs);
|
CVE_2020_0668.Check(vulnerabilities, buildNumber, installedKBs);
|
||||||
CVE_2020_0683.Check(vulnerabilities, buildNumber, installedKBs);
|
CVE_2020_0683.Check(vulnerabilities, buildNumber, installedKBs);
|
||||||
CVE_2020_1013.Check(vulnerabilities, buildNumber, installedKBs);
|
CVE_2020_1013.Check(vulnerabilities, buildNumber, installedKBs);
|
||||||
|
CVE_2020_0796.Check(vulnerabilities, buildNumber, installedKBs);
|
||||||
|
|
||||||
// Print the results
|
// Print the results
|
||||||
vulnerabilities.ShowResults();
|
vulnerabilities.ShowResults();
|
||||||
|
@ -639,6 +639,7 @@
|
|||||||
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-0668.cs" />
|
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-0668.cs" />
|
||||||
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-0683.cs" />
|
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-0683.cs" />
|
||||||
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-1013.cs" />
|
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-1013.cs" />
|
||||||
|
<Compile Include="3rdParty\Watson\Msrc\CVE-2020-0796.cs" />
|
||||||
<Compile Include="3rdParty\Watson\Vulnerability.cs" />
|
<Compile Include="3rdParty\Watson\Vulnerability.cs" />
|
||||||
<Compile Include="3rdParty\Watson\VulnerabilityCollection.cs" />
|
<Compile Include="3rdParty\Watson\VulnerabilityCollection.cs" />
|
||||||
<Compile Include="3rdParty\Watson\Watson.cs" />
|
<Compile Include="3rdParty\Watson\Watson.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user