mirror of
https://github.com/bettercap/bettercap
synced 2025-07-31 04:00:09 -07:00
balls
This commit is contained in:
parent
7dccb87aa8
commit
195650777f
1 changed files with 2 additions and 14 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
const (
|
||||
PromptVariable = "$"
|
||||
DefaultPrompt = "{by}{fw}{iface.cidr} {fb}> {iface.addr} {reset} {bold}» {reset}"
|
||||
DefaultPrompt = "{by}{fw}{cidr} {fb}> {env.iface.address} {reset} {bold}» {reset}"
|
||||
)
|
||||
|
||||
var PromptEffects = map[string]string{
|
||||
|
@ -30,21 +30,9 @@ var PromptEffects = map[string]string{
|
|||
}
|
||||
|
||||
var PromptCallbacks = map[string]func(s *Session) string{
|
||||
"{iface.cidr}": func(s *Session) string {
|
||||
"{cidr}": func(s *Session) string {
|
||||
return s.Interface.CIDR()
|
||||
},
|
||||
"{iface.addr}": func(s *Session) string {
|
||||
return s.Interface.IpAddress
|
||||
},
|
||||
"{iface.mac}": func(s *Session) string {
|
||||
return s.Interface.HwAddress
|
||||
},
|
||||
"{gw.addr}": func(s *Session) string {
|
||||
return s.Gateway.IpAddress
|
||||
},
|
||||
"{gw.mac}": func(s *Session) string {
|
||||
return s.Gateway.HwAddress
|
||||
},
|
||||
}
|
||||
|
||||
var envRe = regexp.MustCompile("{env\\.(.+)}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue