1、配置内核信道监管域
wifi信道根据国家地区的不同,有着严格的频道划分,某些5g信道可以作为雷达探测使用,这意味着 如果有路由器工作在雷达探测保留信道,那么意味着你很可能不能在上边注入,解除认证,以及创建虚假克隆 ap。因此我们需要根据wifi信道顺从表,修改内核监管域国家代码,以影响无线网卡工作频段,使其 能正常注入、解除认证、创建ap等
wlan信道顺从表案例:https://www.docin.com/p-2253061296.html
编辑开机启动配置文件
# 编辑配置,使得每次开机将无线网卡工作频率# 国家代码设置为cn(中国),特别推荐pa(巴拿马)可以避开雷达信道,解除认证5g杠杠的╰─ vim /etc/rc.local#!/bin/bash# this file is added for compatibility purposes## it is highly advisable to create own systemd services or udev rules# to run scripts during boot instead of using this file.## in contrast to previous versions due to parallel execution during boot# this script will not be run after all other services.## please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure# that this script will be executed during boot.# set wlan frequency country code to pa/cniw reg set pa exit 0 # 添加执行权限╰─ chmod +x /etc/rc.local
复制
使配置生效
# 重启服务╰─ systemctl restart rc-local.service ╰─ systemctl status rc-local.service # 或者重启机器╰─ reboot
复制
之后你会发现8812au将能够成功deauth解除认证所有5g信号
#配置完成后验证信道#你应该能看到如下输出#信道后边应该没有任何特殊标记#说明我们可以在上边执行deauth与创建ap ╰─ iw listwiphy phy0 frequencies: * 2412 mhz [1] (20.0 dbm) * 2417 mhz [2] (20.0 dbm) * 2422 mhz [3] (20.0 dbm) * 2427 mhz [4] (20.0 dbm) * 2432 mhz [5] (20.0 dbm) * 2437 mhz [6] (20.0 dbm) * 2442 mhz [7] (20.0 dbm) * 2447 mhz [8] (20.0 dbm) * 2452 mhz [9] (20.0 dbm) * 2457 mhz [10] (20.0 dbm) * 2462 mhz [11] (20.0 dbm) * 2467 mhz [12] (20.0 dbm) * 2472 mhz [13] (20.0 dbm) * 2484 mhz [14] (20.0 dbm) frequencies: * 5075 mhz [15] (30.0 dbm) * 5080 mhz [16] (30.0 dbm) * 5085 mhz [17] (30.0 dbm) * 5090 mhz [18] (30.0 dbm) * 5100 mhz [20] (30.0 dbm) * 5120 mhz [24] (30.0 dbm) * 5140 mhz [28] (30.0 dbm) * 5160 mhz [32] (30.0 dbm) * 5180 mhz [36] (30.0 dbm) * 5200 mhz [40] (30.0 dbm) * 5220 mhz [44] (30.0 dbm) * 5240 mhz [48] (30.0 dbm) * 5260 mhz [52] (30.0 dbm) * 5280 mhz [56] (30.0 dbm) * 5300 mhz [60] (30.0 dbm) * 5320 mhz [64] (30.0 dbm) * 5340 mhz [68] (30.0 dbm) * 5360 mhz [72] (30.0 dbm) * 5380 mhz [76] (30.0 dbm) * 5400 mhz [80] (30.0 dbm) * 5420 mhz [84] (30.0 dbm) * 5440 mhz [88] (30.0 dbm) * 5460 mhz [92] (30.0 dbm) * 5480 mhz [96] (30.0 dbm) * 5500 mhz [100] (30.0 dbm) * 5520 mhz [104] (30.0 dbm) * 5540 mhz [108] (30.0 dbm) * 5560 mhz [112] (30.0 dbm) * 5580 mhz [116] (30.0 dbm) * 5600 mhz [120] (30.0 dbm) * 5620 mhz [124] (30.0 dbm) * 5640 mhz [128] (30.0 dbm) * 5660 mhz [132] (30.0 dbm) * 5680 mhz [136] (30.0 dbm) * 5700 mhz [140] (30.0 dbm) * 5720 mhz [144] (30.0 dbm) * 5745 mhz [149] (30.0 dbm) * 5765 mhz [153] (30.0 dbm) * 5785 mhz [157] (30.0 dbm) * 5805 mhz [161] (30.0 dbm) * 5825 mhz [165] (30.0 dbm) * 5845 mhz [169] (30.0 dbm) * 5865 mhz [173] (30.0 dbm) * 5885 mhz [177] (30.0 dbm)
复制
2、配置fluxion以修复5ghz创建ap
配置fluxion以支持创建5g频段的ap
#编辑ap脚本文件╰─ cat 桌面/fluxion-fix-for-5ghz/lib/ap/hostapd.sh function ap_service_prep() { if [ ${#@} -lt 5 ]; then return 1; fi apserviceinterface=$1 apserviceinterfaceaddress=$2 apservicessid=$3 apservicemac=$4 apservicechannel=$5 ap_service_stop # prepare the hostapd config file. country_code=$(iw reg get | awk 'fnr == 2 {print $2}' | cut -f 1 -d : 2 > /dev/null) [[ ! ${country_code} =~ ^[a-z]{2}$ ]] && country_code=00 rm -rf $apserviceconfigdirectory/$apservicemac-hostapd.conf > /dev/null 2 >&1 echo interface=$apserviceinterfacedriver=nl80211ssid=$apservicessidchannel=$apservicechannel > > $apserviceconfigdirectory/$apservicemac-hostapd.conf if [[ ${apservicechannel} -gt 14 ]];then { echo -e hw_mode=a } > > $apserviceconfigdirectory/$apservicemac-hostapd.conf else { echo -e hw_mode=g } > > $apserviceconfigdirectory/$apservicemac-hostapd.conf fi if [[ ${country_code} != 00 ]];then { echo -e country_code=${country_code} } > > $apserviceconfigdirectory/$apservicemac-hostapd.conf fi
复制
添加如下代码
之后,你会发现fluxion将会正常创建5g频段的ap,不会卡住
显示器背光CCFL和LED的比较
电子工程师遭遇“卡脖子 三十岁触碰天花板
动力磷酸铁锂电池组在乘用车市场的应用状况
小米芯片:已流片失败五次!烧了几十亿!
光纤的辨别方法和光纤接头的连接步骤
fluxion创建AP卡住(5G)解决方法
ADI将采用SambaNova套件,加速AI转型进程
ADI推出超低噪声的DAC AD5790和AD5780
一种基于FPGA和SC16C554实现多串口通信的方法
纯电驱动总成开发的测试需求及应用
贴片电容怎么更换
微信电纸书正式发布:墨水屏 赠无限年卡 支持双色温背光灯
全球离子注入机市场呈现波动增长的态势,市场规模实现18.0亿美元
迪赛康高性能手持差分探针产品描述
坚果R1及坚果TNT发布 期望和实际差距太大
二极管钳位电路说明
Linux下搭建nginx服务器
腾达Mesh分布式路由器来袭,满足大户型家庭WiFi全覆盖需求
PKS安全先进绿色计算2021生态大会在天津开幕
是否需要买WiFi6路由器?它有什么好处?