mirror of
https://github.com/bettercap/bettercap
synced 2025-07-15 01:23:42 -07:00
new: the hid module now exposes its status via api.rest
This commit is contained in:
parent
e7606589f3
commit
e1558413b2
2 changed files with 4 additions and 0 deletions
|
@ -63,6 +63,9 @@ func NewHIDRecon(s *session.Session) *HIDRecon {
|
|||
scriptPath: "",
|
||||
}
|
||||
|
||||
mod.State.Store("sniffing", &mod.sniffAddr)
|
||||
mod.State.Store("injecting", &mod.inInjectMode)
|
||||
|
||||
mod.AddHandler(session.NewModuleHandler("hid.recon on", "",
|
||||
"Start scanning for HID devices on the 2.4Ghz spectrum.",
|
||||
func(args []string) error {
|
||||
|
|
|
@ -41,6 +41,7 @@ func (mod *HIDRecon) setSniffMode(mode string, silent bool) error {
|
|||
mod.sniffAddrRaw = raw
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue