使用kali 伪造wifi热点

要用到的工具

airmon-ng;airbase-ng;isc-dhcp-server

安装工具:

apt install isc-dhcp-server
#第一:将无线网卡设为混杂模式
    airmon-ng start wlan0

#第二:创建一个热点
    airbase-ng -e wifi4 -c 6 wlan0mon
解释
-e 指定热点名字
-c 信道
后面的wlan0mon是开启混杂模式的网卡名

#第三:查看是否多了一个at0的网卡设备
    ip a

#第四:为at0设置,ip,并启动
    ifconfig at0 192.168.1.1 netmask 255.255.255.0 
    ifconfig at0 up

#第五:设置路由信息
    route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1

#第六:编辑dhcp配置,设一个dhcp池
    vim /etc/dhcp/dhcpd.conf

authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.2 192.168.1.100;
  option routers 192.168.31.2;
  option broadcast-address 192.168.1.255;
}

#第七:设置dhcp应用在那个网卡上
    vim /etc/default/isc-dhcp-server
INTERFACESv4="at0"

#第八:启动dhcp服务(注意顺序,这步应该放在后面)
    systemctl start isc-dhcp-server.service 
声明:本文为原创,作者为 辣条①号,转载时请保留本声明及附带文章链接:https://boke.wsfnk.com/archives/198.html
谢谢你请我吃辣条谢谢你请我吃辣条

如果文章对你有帮助,欢迎点击上方按钮打赏作者

最后编辑于:2022/11/25作者: 辣条①号

现在在做什么? 接下来打算做什么? 你的目标什么? 期限还有多少? 进度如何? 不负遇见,不谈亏欠!

暂无评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

arrow grin ! ? cool roll eek evil razz mrgreen smile oops lol mad twisted wink idea cry shock neutral sad ???

文章目录