new: net.show now accepts a comma separated list of ip, macs or aliases to filter for

This commit is contained in:
evilsocket 2018-10-06 14:57:40 +02:00
commit a2b3ee79fb
4 changed files with 52 additions and 32 deletions

View file

@ -57,8 +57,8 @@ func NewDiscovery(s *session.Session) *Discovery {
return d.Show("rcvd", "")
}))
d.AddHandler(session.NewModuleHandler("net.show ADDRESS", `net.show ([\d\.]+)`,
"Show information about a specific address.",
d.AddHandler(session.NewModuleHandler("net.show ADDRESS1, ADDRESS2", `net.show (.+)`,
"Show information about a specific list of addresses (by IP or MAC).",
func(args []string) error {
return d.Show("address", args[0])
}))