Sha256: 5b3b1ef9eeceb251e1fb4760dcadeb48ba31464300ce20ef1b905fc63e97b4e6
Contents?: true
Size: 696 Bytes
Versions: 18
Compression:
Stored size: 696 Bytes
Contents
import { BaseLink } from "@/links/base" import type { Link, LinkType } from "@/types" export class OtxForIP extends BaseLink implements Link { public baseURL: string public name: string public type: LinkType public constructor() { super() this.baseURL = "https://otx.alienvault.com" this.name = "OTX" this.type = "ip" } public href(data: string): string { return this.baseURL + `/indicator/ip/${data}` } } export class OtxForDomain extends OtxForIP implements Link { public type: LinkType public constructor() { super() this.type = "domain" } public href(data: string): string { return this.baseURL + `/indicator/domain/${data}` } }
Version data entries
18 entries across 18 versions & 1 rubygems