-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #312 from HotCakeX/WDACConfig-v0.4.3
WDACConfig v0.4.3
- Loading branch information
Showing
96 changed files
with
2,248 additions
and
1,265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[*.cs] | ||
|
||
# CA1304: Specify CultureInfo | ||
dotnet_diagnostic.CA1304.severity = error | ||
|
||
# CA1305: Specify IFormatProvider | ||
dotnet_diagnostic.CA1305.severity = error | ||
|
||
# CA1307: Specify StringComparison for clarity | ||
dotnet_diagnostic.CA1307.severity = error | ||
|
||
# CA1310: Specify StringComparison for correctness | ||
dotnet_diagnostic.CA1310.severity = error | ||
|
||
# CA1401: P/Invokes should not be visible | ||
dotnet_diagnostic.CA1401.severity = error | ||
|
||
# CA1303: Do not pass literals as localized parameters | ||
dotnet_diagnostic.CA1303.severity = silent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Security.Cryptography.X509Certificates; | ||
|
||
// Some test | ||
List<WDACConfig.AllCertificatesGrabber.AllFileSigners> Certificates = WDACConfig.AllCertificatesGrabber.WinTrust.GetAllFileSigners(@""); | ||
|
||
List<string> subjects = Certificates | ||
.Select(Cert => Cert.Chain?.ChainElements?.Cast<X509ChainElement>().FirstOrDefault()?.Certificate?.Subject?.ToString()) | ||
.Where(subject => subject != null) | ||
.ToList(); | ||
|
||
foreach (var item in subjects) | ||
{ | ||
Console.WriteLine(item); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.