当 wifi 连接恢复时,macchanger 的效果消失

当 wifi 连接恢复时,macchanger 的效果消失

当我安装macchanger软件包时,我将其设置为每次接口关闭时更改 mac 地址。但我注意到我的 IP 地址没有改变。所以我检查了我的mac地址。

连接到路由器时

ip addr
1: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ab:cd:ef:01:23:45 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.7/24 brd 192.168.0.255 scope global dynamic noprefixroute wlo1
       valid_lft 7175sec preferred_lft 7175sec

当 Wi-Fi 被禁用时

ip addr
1: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
    link/ether 67:89:ab:cd:ef:01 brd ff:ff:ff:ff:ff:ff permaddr ab:cd:ef:01:23:45
    altname wlp0s20f3

重新启用 Wi-Fi 时

ip addr
1: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ab:cd:ef:01:23:45 brd ff:ff:ff:ff:ff:ff
    altname wlp0s20f3

重新连接到路由器时

ip addr
1: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether ab:cd:ef:01:23:45 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.7/24 brd 192.168.0.255 scope global dynamic noprefixroute wlo1
       valid_lft 7160sec preferred_lft 7160sec

当我在 Wi-Fi 禁用时尝试更改 Mac 地址时

macchanger -r wlo1
Current MAC:   67:89:ab:cd:ef:01 (unknown)
Permanent MAC: ab:cd:ef:01:23:45 (unknown)
New MAC:       23:45:67:89:ab:cd (unknown)

当我在 Wi-Fi 已打开但未连接时尝试手动更改 Mac 地址时

macchanger -r wlo1
Current MAC:   67:89:ab:cd:ef:01 (unknown)
Permanent MAC: ab:cd:ef:01:23:45 (unknown)
[ERROR] Could not change MAC: interface up or insufficient permissions: Device or resource busy

当我尝试在连接到 Wi-Fi 时手动更改 MAC 地址时

macchanger -r wlo1
Current MAC:   ab:cd:ef:01:23:45 (unknown)
Permanent MAC: ab:cd:ef:01:23:45 (unknown)
[ERROR] Could not change MAC: interface up or insufficient permissions: Device or resource busy

如您所见,每当我重新连接到 Wi-Fi 时,更改就会恢复。我怎样才能让它坚持下去?

相关内容