Netcraft 1.1.0
dotnet add package Netcraft --version 1.1.0
NuGet\Install-Package Netcraft -Version 1.1.0
<PackageReference Include="Netcraft" Version="1.1.0" />
paket add Netcraft --version 1.1.0
#r "nuget: Netcraft, 1.1.0"
// Install Netcraft as a Cake Addin #addin nuget:?package=Netcraft&version=1.1.0 // Install Netcraft as a Cake Tool #tool nuget:?package=Netcraft&version=1.1.0
Netcraft
An async and lightweight C# library for interacting with the Netcraft API.
Usage
This library provides an easy interface for interacting with the Netcraft API. Most importantly, it empowers you to seamlessly automate the reporting of malicious URLs and emails to Netcraft.
To get started, import the library into your solution with either the NuGet Package Manager
or the dotnet
CLI.
dotnet add package Netcraft
For the primary classes to become available, import one or more of the used namespaces.
using Netcraft;
using Netcraft.Modules;
using Netcraft.Entities;
Need more examples? Under the Example
directory you can find a working demo project that implements this library.
Properties
- Built for .NET 8, .NET 7 and .NET 6
- Fully async
- Extensive XML documentation
- No external dependencies (makes use of built-in
HttpClient
andJsonSerializer
) - Custom exceptions (
NetcraftException
) for easy debugging - Parsing of custom Netcraft errors
- Example project to demonstrate all capabilities of the library
Features
- Report malicious URLs, emails and misclassifications
- Request details about existing submissions
- Fetch the reporter leaderboard
Code Samples
Initializing a new API client
NetcraftClient client = new();
Reporting malicious URLs
string uuid = await client.Report.Urls(email, "Phishing against the Turkish Government.", new UrlReportParmeters[]
{
new()
{
Value = "http://basvuruedevletmobilden.ml/",
Country = "US"
}
});
Getting submission details
Submission submission = await client.Submission.GetSubmissionDetails(uuid);
Getting the leaderboard
LeaderboardEntry[] entries = await client.Misc.GetLeaderboard();
References
This is a community-ran library. Not affiliated with Netcraft Ltd.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.