check
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package check contains types and functions for getting information on IP addresses.
Index¶
- Variables
- type Check
- func AbuseIPDB(ipaddr net.IP) (Check, error)
- func BlockList(ipaddr net.IP) (Check, error)
- func Censys(ipaddr net.IP) (Check, error)
- func CinsScore(ipaddr net.IP) (Check, error)
- func DBip(ip net.IP) (Check, error)
- func DnsMX(ipaddr net.IP) (Check, error)
- func DnsName(ipaddr net.IP) (Check, error)
- func Firehol(ipaddr net.IP) (Check, error)
- func IPSum(ipaddr net.IP) (Check, error)
- func IPtoASN(ipaddr net.IP) (Check, error)
- func IsOnAWS(ipaddr net.IP) (Check, error)
- func MaxMind(ip net.IP) (Check, error)
- func OTX(ipaddr net.IP) (Check, error)
- func PhishStats(ipaddr net.IP) (Check, error)
- func Ping(ipaddr net.IP) (Check, error)
- func SansISC(ipaddr net.IP) (Check, error)
- func Shodan(ipaddr net.IP) (Check, error)
- func Spur(ipaddr net.IP) (Check, error)
- func Tls(ipaddr net.IP) (Check, error)
- func UrlScan(ipaddr net.IP) (Check, error)
- func VirusTotal(ipaddr net.IP) (Check, error)
- type Func
- type IpInfo
- type Type
Constants¶
This section is empty.
Variables¶
var Funcs = []Func{AbuseIPDB,BlockList,CinsScore,DBip,DnsMX,DnsName,Firehol,IPSum,IPtoASN,IsOnAWS,MaxMind,OTX,PhishStats,Ping,SansISC,Shodan,Spur,Tls,UrlScan,VirusTotal,}
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
funcAbuseIPDB¶added inv0.24.0
AbuseIPDB uses api.abuseipdb.com to get generic information about ipaddr andto see if the ipaddr has been reported as malicious.
funcBlockList¶added inv0.24.0
BlockList searches the ipaddr in lists.blocklist.de/lists/dnsbl/all.list.
funcCinsScore¶added inv0.24.0
CinsScore searches ipaddr inhttps://cinsscore.com/list/ci-badguys.txt.
funcDBip¶added inv0.24.0
DBip gets geolocation fromhttps://db-ip.com/db/download/ip-to-city-lite.
funcDnsMX¶added inv0.24.0
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.
funcFirehol¶added inv0.28.0
Firehol checks whether the ipaddr is found on blacklisthttps://iplists.firehol.org/?ipset=firehol_level1.
funcIPSum¶added inv0.24.0
IPSum checks how many blacklists the ipaddr is found on. It useshttps://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt.
funcIPtoASN¶added inv0.24.0
IPtoASN gets info about autonomous system of the ipaddr. The data is takenfromhttps://iptoasn.com/data/ip2asn-combined.tsv.gz.
funcIsOnAWS¶added inv0.46.0
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
funcOTX¶added inv0.24.0
OTX counts pulses to find out whether the ipaddr is malicious. Is useshttps://otx.alienvault.com/api/v1/indicators/IPv4.
funcPhishStats¶added inv0.29.0
PhishStats checks whether the ipaddr is involved in phishing according tohttps://phishstats.info/phish_score.csv.
funcPing¶added inv0.24.0
Ping sends five pings (ICMP echo request packets) to the ippaddr and returnsthe statistics.
funcSansISC¶added inv0.43.0
SansISC gets info from SANS Internet Storm Center API.curl "https://isc.sans.edu/api/ip/${IPADDR}?json"
funcUrlScan¶added inv0.24.0
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.
funcVirusTotal¶added inv0.24.0
VirusTotal gets generic information and security reputation about the ippaddrfromhttps://www.virustotal.com/api.
typeIpInfo¶added 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.