new: the hid module now exposes its status via api.rest

This commit is contained in:
evilsocket 2019-03-19 11:29:06 +01:00
parent e7606589f3
commit e1558413b2
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 4 additions and 0 deletions

View file

@ -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 {

View file

@ -41,6 +41,7 @@ func (mod *HIDRecon) setSniffMode(mode string, silent bool) error {
mod.sniffAddrRaw = raw
}
}
return nil
}