mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
7c9e2afdcc
commit
b6e9ca59ec
1 changed files with 7 additions and 10 deletions
|
@ -73,18 +73,15 @@ func NewHIDRecon(s *session.Session) *HIDRecon {
|
||||||
"true",
|
"true",
|
||||||
"If true, enable the LNA power amplifier for CrazyRadio devices."))
|
"If true, enable the LNA power amplifier for CrazyRadio devices."))
|
||||||
|
|
||||||
/*
|
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)$`,
|
||||||
pretty useless until i don't implement the microsoft specific keylogger
|
"Start sniffing a specific ADDRESS in order to collect payloads, use 'clear' to stop collecting.",
|
||||||
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)$`,
|
func(args []string) error {
|
||||||
"TODO TODO",
|
return mod.setSniffMode(args[0])
|
||||||
func(args []string) error {
|
})
|
||||||
return mod.setSniffMode(args[0])
|
|
||||||
})
|
|
||||||
|
|
||||||
sniff.Complete("hid.sniff", s.HIDCompleter)
|
sniff.Complete("hid.sniff", s.HIDCompleter)
|
||||||
|
|
||||||
mod.AddHandler(sniff)
|
mod.AddHandler(sniff)
|
||||||
*/
|
|
||||||
|
|
||||||
mod.AddHandler(session.NewModuleHandler("hid.show", "",
|
mod.AddHandler(session.NewModuleHandler("hid.show", "",
|
||||||
"Show a list of detected HID devices on the 2.4Ghz spectrum.",
|
"Show a list of detected HID devices on the 2.4Ghz spectrum.",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue