fix: using subnet CIDR as prompt

This commit is contained in:
evilsocket 2018-01-08 10:01:33 +01:00
parent 172bf95fad
commit aa48e80cae

View file

@ -204,7 +204,7 @@ func (s *Session) Start() error {
} }
func (s *Session) ReadLine() (string, 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() s.Input.Refresh()
return s.Input.Readline() return s.Input.Readline()
} }