new: several improvements to the new.show u

This commit is contained in:
evilsocket 2018-01-29 12:26:28 +01:00
parent 646c5d14c7
commit 7abb3cbb2c
5 changed files with 135 additions and 104 deletions

View file

@ -38,6 +38,7 @@ type Session struct {
Targets *Targets `json:"targets"`
Queue *packets.Queue `json:"packets"`
Input *readline.Instance `json:"-"`
StartedAt time.Time `json:"started_at"`
Active bool `json:"active"`
Prompt Prompt `json:"-"`
@ -264,6 +265,7 @@ func (s *Session) Start() error {
os.Exit(0)
}()
s.StartedAt = time.Now()
s.Active = true
// keep reading network events in order to add / update endpoints