new: new ble.clear command to clear devices collected by ble.recon

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

View file

@ -57,6 +57,13 @@ func NewBLERecon(s *session.Session) *BLERecon {
return mod.Stop()
}))
mod.AddHandler(session.NewModuleHandler("ble.clear", "",
"Clear all devices collected by the BLE discovery module.",
func(args []string) error {
mod.Session.BLE.Clear()
return nil
}))
mod.AddHandler(session.NewModuleHandler("ble.show", "",
"Show discovered Bluetooth Low Energy devices.",
func(args []string) error {