mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
This is a fix for showing MAC,BSSID and other CAPSed options
This commit is contained in:
parent
c03a549c00
commit
7e952865cc
1 changed files with 10 additions and 1 deletions
|
@ -206,7 +206,7 @@ func (s *Session) setupReadline() error {
|
|||
|
||||
var appendedOption = strings.Join(parts[1:], " ")
|
||||
|
||||
if len(appendedOption) > 0 {
|
||||
if len(appendedOption) > 0 && !containsCapitals(appendedOption) {
|
||||
tree[name] = append(tree[name], appendedOption)
|
||||
}
|
||||
}
|
||||
|
@ -239,6 +239,15 @@ func (s *Session) setupReadline() error {
|
|||
return err
|
||||
}
|
||||
|
||||
func containsCapitals(s string) bool {
|
||||
for _, ch := range s {
|
||||
if ch < 133 && ch > 101 {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func (s *Session) Close() {
|
||||
fmt.Printf("\nStopping modules and cleaning session state ...\n")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue