How to do it...

Now that we have the required software installed, we can set up our evil twin access point.

  1. First, use the iwconfig command to find out the name of our wireless card:
root@kali:~# iwconfig eth0 no wireless extensions.wlan0 IEEE 802.11 ESSID:off/any           Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm           Retry short limit:7 RTS thr:off Fragment thr:off          Encryption key:off          Power Management:off          lo no wireless extensions.root@kali:~# 
  1. Then, use the airmon-ng command from the aircrack-ng suite to start the interface in monitor mode:
root@kali:~# airmon-ng start wlan0

This will create a new virtual (VAP) interface and place it in monitor mode. The name will depend on the drivers, but it will be something like wlan0mon.

Get Metasploit Penetration Testing Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.