RTL8812AU 实现WIFI探针
-
1. RTL8812驱动
# 下载驱动源码 https://github.com/gnab/rtl8812au # 编译安装 make -j4 sudo make install modprobe 8812au #载入模块,也可直接重启
树莓派安装要修改配置Makefile
网卡的类型选择
编译平台选择
2. 将网卡设置为监听模式
2.1 使用aircrack工具
# aircrack获取(aircrack源) sudo apt-get install aircrack-ng # 配置 安装组件 sudo apt-get install build-essential libssl-dev pkg-config libnl-3-dev libnl-genl-3-dev
# 关闭相关进程 sudo airmon-ng check kill # 打开监听模式 airmon-ng start wlan2
2.2 使用iwconfig
# 先将网卡关闭,设为监听模式后再打开 ifconfig wlan0 down iwconfig wlan0 mode monitor ifconfig wlan0 up
3. tshark 使用
Linux 或 Raspberry Pi下 安装
sudo apt-get install tshark # run as non-root sudo dpkg-reconfigure wireshark-common (select YES) sudo usermod -a -G wireshark ${USER:-root} newgrp wireshark