mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: mac.changer now updates global interface mac address variable
This commit is contained in:
parent
0b4c4a7dce
commit
62825cd32a
1 changed files with 4 additions and 0 deletions
|
@ -85,6 +85,10 @@ func (mc *MacChanger) setMac(mac net.HardwareAddr) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
_, err := core.Exec("ifconfig", args)
|
_, err := core.Exec("ifconfig", args)
|
||||||
|
if err == nil {
|
||||||
|
mc.Session.Interface.HW = mac
|
||||||
|
}
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue