mirror of
https://github.com/bettercap/bettercap
synced 2025-07-16 10:03:39 -07:00
new: several improvements to the new.show u
This commit is contained in:
parent
646c5d14c7
commit
7abb3cbb2c
5 changed files with 135 additions and 104 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue