Exemplo n.º 1
0
Arquivo: trace.go Projeto: novag/wok
func init() {
	bot.RegisterPrivate(&bot.ModInfo{
		Name:        "Trace",
		Description: "Result of traceroute to given IPv4 destination",

		Help: true,

		Command:  "trace",
		Callback: Trace,
	})

	bot.RegisterPrivate(&bot.ModInfo{
		Help: false,

		Command:  "traceroute",
		Callback: Trace,
	})

	bot.RegisterChannel(&bot.ModInfo{
		Name:        "Trace",
		Description: "Number of hops to given IPv4 destination",

		Help: true,

		Command:  "trace",
		Callback: CTrace,
	})

	bot.RegisterChannel(&bot.ModInfo{
		Help: false,

		Command:  "traceroute",
		Callback: CTrace,
	})
}
Exemplo n.º 2
0
Arquivo: route6.go Projeto: novag/wok
func init() {
	bot.RegisterPrivate(&bot.ModInfo{
		Name:        "Route6",
		Description: "Preferred peer and additional information for given IPv6 network",

		Help: true,

		Command:  "route6",
		Callback: Route6,
	})

	bot.RegisterChannel(&bot.ModInfo{
		Name:        "Route6",
		Description: "Wheter given IPv4 network is in IPv6 table and it's CIDR notation",

		Help: true,

		Command:  "route6",
		Callback: CRoute6,
	})
}
Exemplo n.º 3
0
func init() {
	bot.RegisterPrivate(&bot.ModInfo{
		Name:        "TCPConnect",
		Description: "Checks if the given TCP port is reachable",

		Help: true,

		Command:  "tcpconnect",
		Callback: TCPConnect,
	})

	bot.RegisterChannel(&bot.ModInfo{
		Name:        "TCPConnect",
		Description: "Checks if the given TCP port is reachable",

		Help: true,

		Command:  "tcpconnect",
		Callback: CTCPConnect,
	})
}
Exemplo n.º 4
0
Arquivo: ping.go Projeto: novag/wok
func init() {
	bot.RegisterPrivate(&bot.ModInfo{
		Name:        "Ping",
		Description: "Result of 5 ECHO_REQUEST packets to given IPv4 destination",

		Help: true,

		Command:  "ping",
		Callback: Ping,
	})

	bot.RegisterChannel(&bot.ModInfo{
		Name:        "Ping",
		Description: "Average time of 5 ECHO_REQUEST packets to given IPv4 destination",

		Help: true,

		Command:  "ping",
		Callback: CPing,
	})
}
Exemplo n.º 5
0
Arquivo: whois.go Projeto: novag/wok
func init() {
	bot.RegisterPrivate(&bot.ModInfo{
		Name:        "Whois",
		Description: "Last whois block for query",

		Help: true,

		Command:  "whois",
		Callback: Whois,
	})

	bot.RegisterChannel(&bot.ModInfo{
		Name:        "Whois",
		Description: "Admin-C, status, contact, ...",

		Help: true,

		Command:  "whois",
		Callback: CWhois,
	})
}