PhishingApi

class PhishingApi(userAgent: String)

Implementation of the Sinking Yachts phishing domain API.

Constructors

Link copied to clipboard
constructor(userAgent: String)

Functions

Link copied to clipboard
suspend fun checkDomain(domain: String): Boolean

Query the API directly to check a specific domain.

Link copied to clipboard
suspend fun getAllDomains(): Set<String>

Get all known phishing domains from the API.

Link copied to clipboard
suspend fun getRecentDomains(seconds: Long): List<DomainChange>

Get all new phishing domains added in the previous seconds seconds.

Link copied to clipboard
suspend fun getTotalDomains(): Long

Get the total number of phishing domains that the API knows about.

Link copied to clipboard

Connect to the websocket and register a callback to receive changes. Returns a lifecycle wrapper.