mirror of
https://github.com/bettercap/bettercap
synced 2025-07-13 08:33:48 -07:00
misc: small fix or general refactoring i did not bother commenting
This commit is contained in:
parent
a5116d3533
commit
09c09e647b
3 changed files with 4 additions and 4 deletions
|
@ -48,13 +48,13 @@ func NewDiscovery(s *session.Session) *Discovery {
|
||||||
}))
|
}))
|
||||||
|
|
||||||
mod.AddHandler(session.NewModuleHandler("net.show ADDRESS1, ADDRESS2", `net.show (.+)`,
|
mod.AddHandler(session.NewModuleHandler("net.show ADDRESS1, ADDRESS2", `net.show (.+)`,
|
||||||
"Show information about a specific list of addresses (by IP or MAC).",
|
"Show information about a specific comma separated list of addresses (by IP or MAC).",
|
||||||
func(args []string) error {
|
func(args []string) error {
|
||||||
return mod.Show(args[0])
|
return mod.Show(args[0])
|
||||||
}))
|
}))
|
||||||
|
|
||||||
mod.AddHandler(session.NewModuleHandler("net.show.meta ADDRESS1, ADDRESS2", `net\.show\.meta (.+)`,
|
mod.AddHandler(session.NewModuleHandler("net.show.meta ADDRESS1, ADDRESS2", `net\.show\.meta (.+)`,
|
||||||
"Show meta information about a specific list of addresses (by IP or MAC).",
|
"Show meta information about a specific comma separated list of addresses (by IP or MAC).",
|
||||||
func(args []string) error {
|
func(args []string) error {
|
||||||
return mod.showMeta(args[0])
|
return mod.showMeta(args[0])
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -58,7 +58,7 @@ func NewSynScanner(s *session.Session) *SynScanner {
|
||||||
return mod.Stop()
|
return mod.Stop()
|
||||||
}))
|
}))
|
||||||
|
|
||||||
mod.AddHandler(session.NewModuleHandler("syn.scan IP-RANGE [START-PORT] [END-PORT]", "syn.scan ([^\\s]+) ?(\\d+)?([\\s\\d]*)?",
|
mod.AddHandler(session.NewModuleHandler("syn.scan IP-RANGE START-PORT END-PORT", "syn.scan ([^\\s]+) ?(\\d+)?([\\s\\d]*)?",
|
||||||
"Perform a syn port scanning against an IP address within the provided ports range.",
|
"Perform a syn port scanning against an IP address within the provided ports range.",
|
||||||
func(args []string) error {
|
func(args []string) error {
|
||||||
period := 0
|
period := 0
|
||||||
|
|
|
@ -261,7 +261,7 @@ func NewWiFiModule(s *session.Session) *WiFiModule {
|
||||||
"false",
|
"false",
|
||||||
"If true, wifi.show will also show the devices manufacturers."))
|
"If true, wifi.show will also show the devices manufacturers."))
|
||||||
|
|
||||||
mod.AddHandler(session.NewModuleHandler("wifi.recon.channel", `wifi\.recon\.channel[\s]+([0-9]+(?:[, ]+[0-9]+)*|clear)`,
|
mod.AddHandler(session.NewModuleHandler("wifi.recon.channel CHANNEL", `wifi\.recon\.channel[\s]+([0-9]+(?:[, ]+[0-9]+)*|clear)`,
|
||||||
"WiFi channels (comma separated) or 'clear' for channel hopping.",
|
"WiFi channels (comma separated) or 'clear' for channel hopping.",
|
||||||
func(args []string) (err error) {
|
func(args []string) (err error) {
|
||||||
freqs := []int{}
|
freqs := []int{}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue