mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
new: keeping track of interface index
This commit is contained in:
parent
4dfdab3201
commit
529d834815
3 changed files with 3 additions and 0 deletions
|
@ -201,6 +201,7 @@ func (s *Session) Start() error {
|
|||
|
||||
s.Env.Set(PromptVariable, DefaultPrompt)
|
||||
|
||||
s.Env.Set("iface.index", fmt.Sprintf("%d", s.Interface.Index))
|
||||
s.Env.Set("iface.name", s.Interface.Name())
|
||||
s.Env.Set("iface.ipv4", s.Interface.IpAddress)
|
||||
s.Env.Set("iface.ipv6", s.Interface.Ip6Address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue