如果我将 wifi 接口脱机:sudo ifconfig device_name down
.
然后将模式切换为监控:sudo iwconfig device_name mode monitor
。
然后将设备重新联机:sudo ifconfig device_name up
.
它会在监控模式下停留约 3-5 秒,然后自动切换回managed
模式。
我用 iwconfig 检查了它,如果我开始运行 wireshark,它会因此停止运行并给出错误The network adapter on which the capture was being done is no longer running; the capture has stopped.
我怎样才能防止这种情况?