phishtank

command
v0.0.0-...-c496913 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

README

Phishtank plugin

Connector sends a GET request to the phishtank.org API and expects an XML response back. Request can contain url field only with a URL to check.

curl to test:

curl 'https://localhost:443/api?uuid=auth-key&sql=FROM+service+WHERE+url=%27http%3A%2F%2Fexample.com%27'

Compile with:

go build -buildmode=plugin -ldflags="-w" -o phishtank.so ./*.go

Limitations

Does not support complex SQL queries and datetime range selection.

Access details

Source YAML definition's access fields:

  • url: API access point, for example - https://checkurl.phishtank.com/checkurl/index.php
  • agent: User-Agent to use

Definition file example

name: phishtank
label: Phishtank
icon: database

plugin: phishtank
inGlobal: true
includeDatetime: false
supportsSQL: false

access:
    url: https://checkurl.phishtank.com/checkurl/index.php
    agent: phishtank/graphoscope

queryFields:
    - url
    - domain


relations:
  -
    from:
        id: url
        group: url
        search: url
        attributes: ["in_database", "phish_id", "phish_detail_page", "verified", "verified_at", "valid"]

    to:
        id: domain
        group: domain
        search: domain

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL