domain_judger

package module
v0.0.0-...-20b2c6c Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 7 Imported by: 0

README

domain-judger

Installation

go get github.com/shota-k2018/domain-judger

Example Usage

package main

import (
	"github.com/shota-k2018/domain-judger"
	"log"
)

func main() {
	// If you want to verify the certificate, please set the second argument to ture
	log.Printf("judge: %+v", domain_judger.Judge("test", false))
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrtshResponse

type CrtshResponse []CrtshResponseRow

type CrtshResponseRow

type CrtshResponseRow struct {
	IssuerCAID     int64  `json:"issuer_ca_id"`
	IssuerName     string `json:"issuer_name"`
	CommonName     string `json:"common_name"`
	NameValue      string `json:"name_value"`
	ID             int64  `json:"id"`
	EntryTimestamp string `json:"entry_timestamp"`
	NotBefore      string `json:"not_before"`
	NotAfter       string `json:"not_after"`
	SerialNumber   string `json:"serial_number"`
}

type Result

type Result struct {
	TLDBadReputation         bool
	InnerTLD                 bool
	IncludeMaliciousKeywords bool
	UsePunycode              bool
	CrtshResults             *CrtshResponse
	UseLetsEncrypt           *bool
}

func Judge

func Judge(domain string, checkCert bool) Result

func (Result) Suspicious

func (r Result) Suspicious() bool

Jump to

Keyboard shortcuts

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