SinkingYachts 1.0.4

There is a newer version of this package available.
See the version list below for details.
dotnet add package SinkingYachts --version 1.0.4                
NuGet\Install-Package SinkingYachts -Version 1.0.4                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SinkingYachts" Version="1.0.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SinkingYachts --version 1.0.4                
#r "nuget: SinkingYachts, 1.0.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SinkingYachts as a Cake Addin
#addin nuget:?package=SinkingYachts&version=1.0.4

// Install SinkingYachts as a Cake Tool
#tool nuget:?package=SinkingYachts&version=1.0.4                

Sinking Yachts 🐟

alternate text is missing from this package README image

A C# library for detecting Discord/Steam phishing links using the Sinking Yachts API.

Usage

Everything is located within the SinkingYachts NuGet package, the main class is called YachtsClient.

Features

  • Fully async
  • Access to a Discord-related phishing database of over 13 300 confirmed malicious domains
  • Regex matching of domains and automatic phishing detection
  • Different modes for storing and loading phishing domains
  • Instant updates through WebSocket events
  • Domain whitelisting to prevent false positives
  • Customizable caching to decrease load

Available methods

  • Task<Change[]> Recent(TimeSpan time)
  • Task<Change[]> Recent(int seconds)
  • Task<bool> IsPhishing(string content)
  • Task<bool> IsPhishingDomain(string domain)
  • Task<int> DatabaseSize()
  • Task<string[]> GetPhishingDomains()

Available events (requires StorageMode.LocalWS)

  • EventHandler<string> DomainAdded
  • EventHandler<string> DomainDeleted

Example

Under the Example folder you can find a demo Discord bot that implements this library.

18.06. 20:09:38 [Discord] Discord.Net v3.6.0 (API v9)
18.06. 20:09:38 [Gateway] Connecting
18.06. 20:09:40 [Gateway] Connected
18.06. 20:09:40 [Bot] Bot is ready to protect your server from 13326 phishing domains
18.06. 20:09:40 [Bot] Domains added within the past day: 111
18.06. 20:09:40 [Bot] Domains deleted within the past day: 0
18.06. 20:09:40 [Gateway] Ready

Unknown domains

Found a Discord/Steam phishing domain that isn't yet present in the database? Send it into the #domain-reports channel on our Discord server or open an issue.

Need help, want to discuss phishing or have a suggestion? Feel free to join our Discord server: https://discord.gg/cT6eQjWW8H

Product 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 was computed.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.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.

Version Downloads Last updated
1.1.4 454 9/8/2022
1.0.4 419 6/21/2022
1.0.3 435 6/20/2022
1.0.2 432 6/20/2022
1.0.1 414 6/20/2022
1.0.0 394 6/20/2022