mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 13:32:07 -07:00
fix: using subnet CIDR as prompt
This commit is contained in:
parent
172bf95fad
commit
aa48e80cae
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ func (s *Session) Start() error {
|
|||
}
|
||||
|
||||
func (s *Session) ReadLine() (string, error) {
|
||||
s.Input.SetPrompt(core.GREEN + s.Interface.IpAddress + core.RESET + "» ")
|
||||
s.Input.SetPrompt("cap@" + core.GREEN + s.Interface.CIDR() + core.RESET + "» ")
|
||||
s.Input.Refresh()
|
||||
return s.Input.Readline()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue