cmd

package
v0.0.0-...-890509d Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const CRITICAL = 2
View Source
const OK = 0
View Source
const UNKNOWN = 3
View Source
const WARNING = 1

Variables

View Source
var BlacklistServers = []string{
	"all.s5h.net",
	"b.barracudacentral.org",
	"bl.spamcop.net",
	"blacklist.woody.ch",
	"bogons.cymru.com",
	"combined.abuse.ch",
	"db.wpbl.info",
	"dnsbl-1.uceprotect.net",
	"dnsbl-2.uceprotect.net",
	"dnsbl-3.uceprotect.net",
	"dnsbl.anticaptcha.net",
	"dnsbl.dronebl.org",
	"dnsbl.inps.de",
	"dnsbl.sorbs.net",
	"dnsbl.spfbl.net",
	"drone.abuse.ch",
	"duinv.aupads.org",
	"dul.dnsbl.sorbs.net",
	"dyna.spamrats.com",
	"http.dnsbl.sorbs.net",
	"ips.backscatterer.org",
	"ix.dnsbl.manitu.net",
	"korea.services.net",
	"misc.dnsbl.sorbs.net",
	"noptr.spamrats.com",
	"orvedb.aupads.org",
	"proxy.bl.gweep.ca",
	"psbl.surriel.com",
	"relays.bl.gweep.ca",
	"relays.nether.net",
	"short.rbl.jp",
	"singular.ttk.pte.hu",
	"smtp.dnsbl.sorbs.net",
	"socks.dnsbl.sorbs.net",
	"spam.abuse.ch",
	"spam.dnsbl.anonmails.de",
	"spam.dnsbl.sorbs.net",
	"spam.spamrats.com",
	"spambot.bls.digibase.ca",
	"spamrbl.imp.ch",
	"spamsources.fabel.dk",
	"ubl.lashback.com",
	"ubl.unsubscore.com",
	"virus.rbl.jp",
	"web.dnsbl.sorbs.net",
	"wormrbl.imp.ch",
	"z.mailspike.net",
	"zen.spamhaus.org",
	"zombie.dnsbl.sorbs.net",
}
View Source
var RootCmd = &cobra.Command{
	Use:   "nagios-dnsblklist",
	Short: "This tool is checking if a specific ip was blacklisted",
	Long: `This tool is performing a reverse dns lookup to check if the supplied
ip-address is listed on a blacklist server.

The ip-address is checked against a list of all relevant blacklist servers.

Current Version: 2.0.7`,
}

RootCmd represents the base command when called without any subcommands

View Source
var SuppressCrit bool
View Source
var Timeout int

Functions

func Execute

func Execute()

Execute adds all child commands to the root command sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

This section is empty.

Jump to

Keyboard shortcuts

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