misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2019-03-18 22:16:32 +01:00
parent a5116d3533
commit 09c09e647b
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 4 additions and 4 deletions

View file

@ -48,13 +48,13 @@ func NewDiscovery(s *session.Session) *Discovery {
}))
mod.AddHandler(session.NewModuleHandler("net.show ADDRESS1, ADDRESS2", `net.show (.+)`,
"Show information about a specific list of addresses (by IP or MAC).",
"Show information about a specific comma separated list of addresses (by IP or MAC).",
func(args []string) error {
return mod.Show(args[0])
}))
mod.AddHandler(session.NewModuleHandler("net.show.meta ADDRESS1, ADDRESS2", `net\.show\.meta (.+)`,
"Show meta information about a specific list of addresses (by IP or MAC).",
"Show meta information about a specific comma separated list of addresses (by IP or MAC).",
func(args []string) error {
return mod.showMeta(args[0])
}))