OWASP ZAP Dot NET API
- Nuget package downloadable at OWASPZAPDotNetAPI
- Nuget package manager command
Install-Package OWASPZAPDotNetAPI -Version 2.12.0
Samples and how to:
-
Simple point and click scan - SimplePointAndClickScan.cs
-
Authenticated scan - AuthenticatedScanWithFormsAuthentication.cs
Although the target framework for this dll is .Net framework 4.5, you could also use the library from a .Net core application.
In case of TLS errors, try:
private static void ConfigureTLSSettingsForDotNet45()
{
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls
| SecurityProtocolType.Tls11
| SecurityProtocolType.Tls12
| SecurityProtocolType.Ssl3;
}