https://github.com/nicogis/w3cparser
https://github.com/nicogis/w3cparser
iis-log iis-log-parser iis-logs tls
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nicogis/w3cparser
- Owner: nicogis
- Created: 2023-02-02T19:27:58.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-06T16:02:45.000Z (over 3 years ago)
- Last Synced: 2025-02-06T21:31:32.755Z (over 1 year ago)
- Topics: iis-log, iis-log-parser, iis-logs, tls
- Language: C#
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### W3CParser
This project is [W3CParser](https://github.com/AlexNolasco/SO32120528)
I have added functionality to query CryptProtocol, CryptCipher, CryptHash, CryptKeyexchange
Set server variable in log IIS [New IIS functionality to help identify weak TLS usage](https://www.microsoft.com/en-us/security/blog/2017/09/07/new-iis-functionality-to-help-identify-weak-tls-usage/)
```
using TextReader textReader = new StreamReader(@"C:\inetpub\logs\LogFiles\W3SVC1\u_ex230202_x.log");
var reader = new W3CReader(textReader);
foreach (var webevent in reader.Read().Where(r => r.CryptProtocol != W3CParser.Enumerators.dwProtocol.SP_PROT_TLS1_2_SERVER)
.OrderBy(w => w.Status)
.ThenBy(w => w.Date)
.ThenBy(w => w.UriStem)
.ThenBy(w => w.UriQuery))
{
Console.WriteLine("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}", webevent.Status.ToString(), webevent.ToLocalTime(),
webevent.UriStem, webevent.UriQuery,webevent.ClientIpAddress, webevent.CryptProtocol, webevent.CryptCipher, webevent.CryptHash, webevent.CryptKeyexchange );
}
```
dotnet add package W3CParser --version 1.0.0