Movatterモバイル変換


[0]ホーム

URL:


check

package
v0.48.5Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License:MITImports:33Imported by:2

Details

Repository

github.com/jreisinger/checkip

Links

Documentation

Overview

Package check contains types and functions for getting information on IP addresses.

Index

Constants

This section is empty.

Variables

Funcs contains all available functions for checking IP addresses.

Functions

This section is empty.

Types

typeCheck

type Check struct {Descriptionstring `json:"description"`// max 15 charsTypeType   `json:"type"`MissingCredentialsstring `json:"missingCredentials,omitempty"`IpAddrIsMaliciousbool   `json:"ipAddrIsMalicious"`IpAddrInfoIpInfo `json:"ipAddrInfo"`}

Check contains information on the check itself andthe obtained information about an IP address

funcAbuseIPDBadded inv0.24.0

func AbuseIPDB(ipaddrnet.IP) (Check,error)

AbuseIPDB uses api.abuseipdb.com to get generic information about ipaddr andto see if the ipaddr has been reported as malicious.

funcBlockListadded inv0.24.0

func BlockList(ipaddrnet.IP) (Check,error)

BlockList searches the ipaddr in lists.blocklist.de/lists/dnsbl/all.list.

funcCensysadded inv0.46.5

func Censys(ipaddrnet.IP) (Check,error)

Censys gets generic information from search.censys.io.

funcCinsScoreadded inv0.24.0

func CinsScore(ipaddrnet.IP) (Check,error)

CinsScore searches ipaddr inhttps://cinsscore.com/list/ci-badguys.txt.

funcDBipadded inv0.24.0

func DBip(ipnet.IP) (Check,error)

DBip gets geolocation fromhttps://db-ip.com/db/download/ip-to-city-lite.

funcDnsMXadded inv0.24.0

func DnsMX(ipaddrnet.IP) (Check,error)

DnsMX performs reverse lookup and consults AbuseIPDB to get domain names fothe ipaddr. Then it looks up MX records (mail servers) for the given domainnames.

funcDnsNameadded inv0.24.0

func DnsName(ipaddrnet.IP) (Check,error)

DnsName does a reverse lookup for a given IP address to get its names.

funcFireholadded inv0.28.0

func Firehol(ipaddrnet.IP) (Check,error)

Firehol checks whether the ipaddr is found on blacklisthttps://iplists.firehol.org/?ipset=firehol_level1.

funcIPSumadded inv0.24.0

func IPSum(ipaddrnet.IP) (Check,error)

IPSum checks how many blacklists the ipaddr is found on. It useshttps://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt.

funcIPtoASNadded inv0.24.0

func IPtoASN(ipaddrnet.IP) (Check,error)

IPtoASN gets info about autonomous system of the ipaddr. The data is takenfromhttps://iptoasn.com/data/ip2asn-combined.tsv.gz.

funcIsOnAWSadded inv0.46.0

func IsOnAWS(ipaddrnet.IP) (Check,error)

IsOnAWS checks if ipaddr belongs to AWS. If so it provides info about the IPaddress. It gets the info fromhttps://ip-ranges.amazonaws.com/ip-ranges.json

funcMaxMindadded inv0.24.0

func MaxMind(ipnet.IP) (Check,error)

MaxMind gets geolocation data from maxmind.com's GeoLite2-City.mmdb.

funcOTXadded inv0.24.0

func OTX(ipaddrnet.IP) (Check,error)

OTX counts pulses to find out whether the ipaddr is malicious. Is useshttps://otx.alienvault.com/api/v1/indicators/IPv4.

funcPhishStatsadded inv0.29.0

func PhishStats(ipaddrnet.IP) (Check,error)

PhishStats checks whether the ipaddr is involved in phishing according tohttps://phishstats.info/phish_score.csv.

funcPingadded inv0.24.0

func Ping(ipaddrnet.IP) (Check,error)

Ping sends five pings (ICMP echo request packets) to the ippaddr and returnsthe statistics.

funcSansISCadded inv0.43.0

func SansISC(ipaddrnet.IP) (Check,error)

SansISC gets info from SANS Internet Storm Center API.curl "https://isc.sans.edu/api/ip/${IPADDR}?json"

funcShodanadded inv0.24.0

func Shodan(ipaddrnet.IP) (Check,error)

Shodan gets generic information from api.shodan.io.

funcSpuradded inv0.48.0

func Spur(ipaddrnet.IP) (Check,error)

Spur gets generic information from api.spur.io.

funcTlsadded inv0.30.0

func Tls(ipaddrnet.IP) (Check,error)

Tls finds out TLS information by connecting to the ipaddr and TCP port 443.

funcUrlScanadded inv0.24.0

func UrlScan(ipaddrnet.IP) (Check,error)

UrlScan gets data from urlscan.io. When a URL is submitted to urlscan.io, anautomated process will browse to the URL like a regular user and record theactivity that this page navigation creates.

funcVirusTotaladded inv0.24.0

func VirusTotal(ipaddrnet.IP) (Check,error)

VirusTotal gets generic information and security reputation about the ippaddrfromhttps://www.virustotal.com/api.

typeFuncadded inv0.47.0

type Func func(ipaddrnet.IP) (Check,error)

Func gathers generic and/or security information about an IP address.

typeIpInfoadded inv0.47.0

type IpInfo interface {Summary()string// summary infoJson() ([]byte,error)// all info in JSON format}

IpInfo is generic information on an IP address.

typeType

type Typeint

Type is the type of a Check.

const (InfoType =iota// some information about the IP addressIsMalicious// whether the IP address is considered maliciousInfoAndIsMalicious// both of the above)

Type of a check.

func (Type)MarshalJSONadded inv0.47.0

func (tType) MarshalJSON() ([]byte,error)

func (Type)Stringadded inv0.15.0

func (tType) String()string

String returns the name of the Check type.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp