mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -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)
|
||||
if err == nil {
|
||||
mc.Session.Interface.HW = mac
|
||||
}
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue