mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 13:33:21 -07:00
new: new ble.show.filter, ble.show.limit and ble.show.sort parameters
This commit is contained in:
parent
93a68bee27
commit
d62090267e
3 changed files with 112 additions and 13 deletions
|
@ -10,6 +10,7 @@ import (
|
|||
golog "log"
|
||||
"time"
|
||||
|
||||
"github.com/bettercap/bettercap/modules/utils"
|
||||
"github.com/bettercap/bettercap/network"
|
||||
"github.com/bettercap/bettercap/session"
|
||||
|
||||
|
@ -26,6 +27,7 @@ type BLERecon struct {
|
|||
connTimeout time.Duration
|
||||
quit chan bool
|
||||
done chan bool
|
||||
selector *utils.ViewSelector
|
||||
}
|
||||
|
||||
func NewBLERecon(s *session.Session) *BLERecon {
|
||||
|
@ -39,6 +41,10 @@ func NewBLERecon(s *session.Session) *BLERecon {
|
|||
connected: false,
|
||||
}
|
||||
|
||||
mod.selector = utils.ViewSelectorFor(&mod.SessionModule,
|
||||
"ble.show",
|
||||
[]string{"rssi", "mac", "seen"}, "rssi asc")
|
||||
|
||||
mod.AddHandler(session.NewModuleHandler("ble.recon on", "",
|
||||
"Start Bluetooth Low Energy devices discovery.",
|
||||
func(args []string) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue