new: new net.clear command to clear endpoints collected by net.recon

This commit is contained in:
evilsocket 2019-02-19 11:11:04 +01:00
commit 5f462525d3
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 14 additions and 0 deletions

View file

@ -30,6 +30,13 @@ func NewDiscovery(s *session.Session) *Discovery {
return mod.Stop()
}))
mod.AddHandler(session.NewModuleHandler("net.clear", "",
"Clear all endpoints collected by the hosts discovery module.",
func(args []string) error {
mod.Session.Lan.Clear()
return nil
}))
mod.AddParam(session.NewBoolParameter("net.show.meta",
"false",
"If true, the net.show command will show all metadata collected about each endpoint."))