Sha256: a538ae85b1d0f72f57483de3080f592bd9c70aa9e1f07717332259571f243407

Contents?: true

Size: 814 Bytes

Versions: 18

Compression:

Stored size: 814 Bytes

Contents

import { BaseLink } from "@/links/base"
import type { Link, LinkType } from "@/types"

class SecurityTrails extends BaseLink {
  public baseURL: string
  public name: string
  public type: LinkType

  public constructor() {
    super()

    this.baseURL = "https://securitytrails.com"
    this.name = "SecurityTrails"
    this.type = "domain"
  }
}

export class SecurityTrailsForDomain extends SecurityTrails implements Link {
  public constructor() {
    super()
    this.type = "domain"
  }

  public href(data: string): string {
    return this.baseURL + `/domain/${data}/dns`
  }
}

export class SecurityTrailsForIP extends SecurityTrails implements Link {
  public constructor() {
    super()
    this.type = "ip"
  }

  public href(data: string): string {
    return this.baseURL + `/list/ip/${data}`
  }
}

Version data entries

18 entries across 18 versions & 1 rubygems

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