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

Version Path
mihari-5.7.0 frontend/src/links/otx.ts
mihari-5.6.2 frontend/src/links/otx.ts
mihari-5.6.1 frontend/src/links/otx.ts
mihari-5.6.0 frontend/src/links/otx.ts
mihari-5.5.0 frontend/src/links/otx.ts
mihari-5.4.9 frontend/src/links/otx.ts
mihari-5.4.8 frontend/src/links/otx.ts
mihari-5.4.7 frontend/src/links/otx.ts
mihari-5.4.6 frontend/src/links/otx.ts
mihari-5.4.5 frontend/src/links/otx.ts
mihari-5.4.4 frontend/src/links/otx.ts
mihari-5.4.3 frontend/src/links/otx.ts
mihari-5.4.2 frontend/src/links/otx.ts
mihari-5.4.1 frontend/src/links/otx.ts
mihari-5.4.0 frontend/src/links/otx.ts
mihari-5.3.2 frontend/src/links/otx.ts
mihari-5.3.1 frontend/src/links/otx.ts
mihari-5.3.0 frontend/src/links/otx.ts