mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: new hid.clear command to clear the list of devices
This commit is contained in:
parent
758f839e17
commit
c8e9d11871
1 changed files with 7 additions and 0 deletions
|
@ -75,6 +75,13 @@ func NewHIDRecon(s *session.Session) *HIDRecon {
|
|||
return mod.Stop()
|
||||
}))
|
||||
|
||||
mod.AddHandler(session.NewModuleHandler("hid.clear", "",
|
||||
"Clear all devices collected by the HID discovery module.",
|
||||
func(args []string) error {
|
||||
mod.Session.HID.Clear()
|
||||
return nil
|
||||
}))
|
||||
|
||||
sniff := session.NewModuleHandler("hid.sniff ADDRESS", `(?i)^hid\.sniff ([a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}:[a-f0-9]{2}|clear)$`,
|
||||
"Start sniffing a specific ADDRESS in order to collect payloads, use 'clear' to stop collecting.",
|
||||
func(args []string) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue